FileSize

class passengersim.database.files.FileSize(path: Path, size: int | None, bytes_per_second: float | None, error: str | None = None)[source]

Bases: object

One database’s aggregate size, including its SQLite companion files.

Methods

__init__(path, size, bytes_per_second[, error])

Attributes

error

Filesystem error text for an unreadable file.

path

Absolute main database path identifying the group.

size

Combined logical size in bytes, or None when any member cannot be read.

bytes_per_second

Net size change per second, or None until two observations exist.

path : Path

Absolute main database path identifying the group.

size : int | None

Combined logical size in bytes, or None when any member cannot be read.

bytes_per_second : float | None

Net size change per second, or None until two observations exist.

error : str | None = None

Filesystem error text for an unreadable file.