aiomegfile.interfaces module

class aiomegfile.interfaces.Access(value)[source]

Bases: Enum

An enumeration.

READ = 1
WRITE = 2
class aiomegfile.interfaces.FileEntry(name, path, stat)[source]

Bases: NamedTuple

inode() int | str | None[source]
is_dir() bool[source]
is_file() bool[source]
name: str

Alias for field number 0

path: str

Alias for field number 1

stat: StatResult

Alias for field number 2

class aiomegfile.interfaces.StatResult(st_size, st_ctime, st_mtime, isdir, islnk, extra)[source]

Bases: NamedTuple

property ctime: float

Platform dependent:

the time of most recent metadata change on Unix, the time of creation on Windows, expressed in seconds.

extra: Any

Alias for field number 5

is_dir() bool[source]
is_file() bool[source]
isdir: bool

Alias for field number 3

islnk: bool

Alias for field number 4

property mtime: float

Time of most recent content modification expressed in seconds.

property size: int

Size of the file in bytes.

property st_atime: float

Time of most recent access expressed in seconds. Only support fs.

property st_atime_ns: int

Time of most recent access expressed in nanoseconds as an integer. Only support fs.

st_ctime: float

Alias for field number 1

property st_ctime_ns: int

Platform dependent:

the time of most recent metadata change on Unix, the time of creation on Windows, expressed in nanoseconds as an integer.

Only support fs.

property st_dev: int

Identifier of the device on which this file resides.

property st_gid: int

Group identifier of the file owner. Only support fs.

property st_ino: int

Platform dependent, but if non-zero, uniquely identifies the file for a given value of st_dev. Typically:

the inode number on Unix, the file index on Windows, the decimal of etag on oss.

property st_mode: int

File mode: file type and file mode bits (permissions). Only support fs.

st_mtime: float

Alias for field number 2

property st_mtime_ns: int

Time of most recent content modification expressed in nanoseconds as an integer. Only support fs.

Number of hard links. Only support fs.

st_size: int

Alias for field number 0

property st_uid: int

User identifier of the file owner. Only support fs.