Skip to content

FileInfo

🛈 DocStrings

File information model.

Source code in src/anyenv/os_commands/models.py
@dataclass
class FileInfo:
    """File information model."""

    name: str
    path: str
    type: Literal["file", "directory", "link"]
    size: int
    mtime: int | None = None
    timestamp: str | None = None
    permissions: str | None = None

:fa-brands-github: Show source on GitHub