new methods for DirectoryBase and DirectoryInfoBase