FileEntry

class LOGS.Entities.FileEntry.FileEntry(ref=None, fullPath=None, state=None)[source]

Bases: SerializeableClass

addFragment(fragments)[source]
addHash()[source]
addMtime()[source]
classmethod entriesFromFiles(files, ignoreReadErrors=False)[source]
fragments: Optional[List[FingerprintFragment]] = None
fullPath: str = ''
hash: Optional[str] = None
id: Optional[str] = None
isDir: bool = False
mtime: Optional[datetime] = None
name: str = ''
path: str = ''
state: Optional[Literal['NEW', 'UNCHANGED', 'NEEDSUPDATE', 'DELETE']] = None
class LOGS.Entities.FileEntry.FileFragment(ref=None)[source]

Bases: SerializeableClass

fragments: List[FingerprintFragment] = []
id: str = ''
class LOGS.Entities.FileEntry.FingerprintFragment(ref=None)[source]

Bases: SerializeableClass

bytes: str = ''
length: int = 0
offset: int = 0