pub fn get_entry_type(path: String) -> Result<DirectoryEntryType>