Return file data for path.
(path: Path)
| 93 | |
| 94 | @staticmethod |
| 95 | def get_file_data(path: Path) -> FileData: |
| 96 | """Return file data for path.""" |
| 97 | |
| 98 | stat = path.stat() |
| 99 | hash = Cache.hash_digest(path) |
| 100 | return FileData(stat.st_mtime, stat.st_size, hash) |
| 101 | |
| 102 | def is_changed(self, source: Path) -> bool: |
| 103 | """Check if source has changed compared to cached version.""" |
no test coverage detected