These 3 methods are now moved to BaseFile.