Struct distant_protocol::Metadata
source · pub struct Metadata {
pub canonicalized_path: Option<PathBuf>,
pub file_type: FileType,
pub len: u64,
pub readonly: bool,
pub accessed: Option<u64>,
pub created: Option<u64>,
pub modified: Option<u64>,
pub unix: Option<UnixMetadata>,
pub windows: Option<WindowsMetadata>,
}
Expand description
Represents metadata about some path on a remote machine.
Fields§
§canonicalized_path: Option<PathBuf>
Canonicalized path to the file or directory, resolving symlinks, only included if flagged during the request.
file_type: FileType
Represents the type of the entry as a file/dir/symlink.
len: u64
Size of the file/directory/symlink in bytes.
readonly: bool
Whether or not the file/directory/symlink is marked as unwriteable.
accessed: Option<u64>
Represents the last time (in seconds) when the file/directory/symlink was accessed; can be optional as certain systems don’t support this.
created: Option<u64>
Represents when (in seconds) the file/directory/symlink was created; can be optional as certain systems don’t support this.
modified: Option<u64>
Represents the last time (in seconds) when the file/directory/symlink was modified; can be optional as certain systems don’t support this.
unix: Option<UnixMetadata>
Represents metadata that is specific to a unix remote machine.
windows: Option<WindowsMetadata>
Represents metadata that is specific to a windows remote machine.