Structstd::fs::Metadata 1.0.0·source· pub struct Metadata(_); 有关文件的元数据信息。 此结构体是从metadata或symlink_metadata函数或方法返回的,表示有关文件的已知元数据,例如其权限,大小,修改时间等。 Implementations 1.1.0·source pub fnfile_type(&self) ->FileType ...
Currently, using std::os::unix::fs::MetadataExt and std::os::linux::fs::MetadataExt it is possible to get the inode number of a file. This can be useful in determining whether two files are the same. There's a similar concept in Windows, consisting of a few parts: VolumeSerialNumbe...