FileInfo

FileInfo(path, size_bytes)

Container for file metadata.

Attributes

Name Type Description
path Path Absolute path to the file.
size_bytes int File size in bytes.

Examples

>>> from pathlib import Path
>>> info = FileInfo(path=Path("example.txt"), size_bytes=12)
>>> info.size_bytes
12