BarecatFileInfo#
- class barecat.BarecatFileInfo(path=None, mode=None, uid=None, gid=None, mtime_ns=None, shard=None, offset=None, size=None, crc32c=None)[source]#
Bases:
BarecatEntryInfoDescribes file information such as path, location in the shards and metadata.
This class is used both when retrieving existing file information and when adding new files.
- Parameters:
path (Optional[str]) – path to the file inside the archive
mode (Optional[int]) – file mode, i.e., permissions
uid (Optional[int]) – user ID
gid (Optional[int]) – group ID
mtime_ns (Optional[Union[int, datetime]]) – last modification time in nanoseconds since the Unix epoch
shard (Optional[int]) – shard number
offset (Optional[int]) – offset within the shard in bytes
size (Optional[int]) – size of the file in bytes
crc32c (Optional[int]) – CRC32C checksum of the file contents
Attributes#
Properties#
End position of the file in the shard. |