Snapshot Module¶
datajoint_file_validator.snapshot.Snapshot = List[Dict[str, Any]]
module-attribute
¶
datajoint_file_validator.snapshot.S3URI = str
module-attribute
¶
datajoint_file_validator.snapshot.PathLike = Union[str, Path, S3URI]
module-attribute
¶
datajoint_file_validator.snapshot.create_snapshot(path)
¶
Generate a snapshot of a file or directory at local path
.
Converts the list of dataclasses to a Snapshot.
Source code in datajoint_file_validator/snapshot.py
95 96 97 98 99 100 101 |
|
datajoint_file_validator.snapshot.FileMetadata
dataclass
¶
Metadata for a file.
Source code in datajoint_file_validator/snapshot.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
from_path(path, root)
classmethod
¶
Return a FileMetadata object from a Path object.
Source code in datajoint_file_validator/snapshot.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
to_iso_8601(time_ns)
staticmethod
¶
Source code in datajoint_file_validator/snapshot.py
33 34 35 36 |
|
asdict()
¶
Source code in datajoint_file_validator/snapshot.py
71 72 |
|