euporie.core.convert.mime.UPathStatResult

class euporie.core.convert.mime.UPathStatResult(stat_result_seq: Sequence[int], info_dict: Optional[Mapping[str, Any]] = None)

A stat_result compatible class wrapping fsspec info dicts.

Note: It is unlikely that you will ever have to instantiate

this class directly. If you want to convert and info dict, use: UPathStatResult.from_info(info)

This object may be accessed either as a tuple of

(mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime)

or via the attributes st_mode, st_ino, st_dev, st_nlink, st_uid, and so on.

There’s an additional method as_info() for accessing the info dict. This is useful to access additional information provided by the file system implementation, that’s not covered by the stat_result tuple.