Python Os


Classes

Stat_Result

Returned by os.fstat(), os.lstat(), os.stat(), pathlib.Path.stat().

Attributes

Meaning

st_mode

file type and permission bits

st_ino

inode number

st_dev

device identifier

st_nlink

st_uid

file owner

st_gid

file group

st_size

file size in bytes

st_atime

last access time in seconds since the epoch

st_mtime

last modification time in seconds since the epoch

st_ctime

last metadata change time in seconds since the epoch

st_birthtime

creation time in seconds; not always available (e.g. added to Windows in Python 3.12)

st_atime_ns

st_atime in nanoseconds

st_mtime_ns

st_mtime in nanoseconds

st_ctime_ns

st_ctime in nanoseconds

st_birthtime_ns

st_birthtime in nanoseconds

st_blocks

st_blksize

st_rdev

st_flags

st_gen

st_fstype

filesystem type identifier

st_rsize

macOS attribute

st_creator

macOS attribute

st_type

macOS attribute

st_file_attributes

Windows attribute

st_reparse_tag

Windows attribute


CategoryRicottone

Python/Os (last edited 2023-10-11 19:43:42 by DominicRicottone)