We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
file_type
1 parent 6feacbb commit 646d41cCopy full SHA for 646d41c
text/0000-io-fs-2.1.md
@@ -510,7 +510,7 @@ impl DirEntry {
510
/// On some platforms this may not require reading the metadata of the
511
/// underlying file from the filesystem, but on other platforms it may be
512
/// required to do so.
513
- pub fn file_type(&self) -> FileType;
+ pub fn file_type(&self) -> io::Result<FileType>;
514
515
/// Returns the file name for this directory entry.
516
pub fn file_name(&self) -> OsString;
0 commit comments