pub struct NameEntry {
pub filename: Path,
pub long_name: Bytes,
pub attrs: Attrs,
}Expand description
Arbitrary byte string containing the requested data.
The data string may be at most the number of bytes requested in a Read request,
but may also be shorter if end of file is reached or if the read is from something other than a regular file.
Fields§
§filename: PathPath of the file or directory designated by this entry
for ReadDir, it will be a relative name within the directory, without any path components.
for RealPath it will be an absolute path name.
long_name: BytesExpanded format of the filename with permissions and owner, à-la ls -l.
Its format is unspecified by this protocol. It MUST be suitable for use in the output of a directory listing command (in fact, the recommended operation for a directory listing command is to simply display this data). However, clients SHOULD NOT attempt to parse the longname field for file attributes; they SHOULD use the attrs field instead.
attrs: AttrsAttributes of the file or directory designated by this entry