Source code for ralph.files._file_snapshot
"""FileSnapshot — captured state for a single tracked file."""
from __future__ import annotations
from dataclasses import dataclass
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from pathlib import Path
[docs]
@dataclass(frozen=True)
class FileSnapshot:
"""Captured state for a single tracked file."""
path: Path
checksum: str
size: int
exists: bool
__all__ = ["FileSnapshot"]