suspend fun String.toDirectoryEntry(): Result<DirectoryEntry, FileException>
Extension function to convert String to a directory entry.