f5-backup 0.2.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {f5_backup-0.2.0 → f5_backup-0.3.0}/PKG-INFO +1 -1
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/backup/tskfilesystem.py +18 -2
- {f5_backup-0.2.0 → f5_backup-0.3.0}/pyproject.toml +1 -1
- {f5_backup-0.2.0 → f5_backup-0.3.0}/README.md +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/__init__.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/__main__.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/backup/__init__.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/backup/filekey.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/backup/s3config.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/backup/s3filesystem.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/backup/tskreader.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/backup/uploadprogress.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/cli.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/console.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/devices/__init__.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/devices/monitorconfig.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/devices/monitorworker.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/devices/partition.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/devices/partitionremoved.py +0 -0
- {f5_backup-0.2.0 → f5_backup-0.3.0}/f5/logging.py +0 -0
|
@@ -6,6 +6,22 @@ import pytsk3
|
|
|
6
6
|
from ..devices import Partition
|
|
7
7
|
from .filekey import FileKey
|
|
8
8
|
|
|
9
|
+
_VIRTUAL_TYPES = (pytsk3.TSK_FS_META_TYPE_VIRT, pytsk3.TSK_FS_META_TYPE_VIRT_DIR)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _is_real_entry(entry, name: str, at_root: bool) -> bool:
|
|
13
|
+
if entry.info.name.flags == pytsk3.TSK_FS_NAME_FLAG_UNALLOC:
|
|
14
|
+
return False # deleted file
|
|
15
|
+
meta = entry.info.meta
|
|
16
|
+
if meta is None or meta.type in _VIRTUAL_TYPES:
|
|
17
|
+
return False # $MBR, $FAT1, $FAT2, $OrphanFiles, ...
|
|
18
|
+
if name.endswith("(Volume Label Entry)"):
|
|
19
|
+
return False
|
|
20
|
+
if at_root and name.startswith("$"):
|
|
21
|
+
return False # exFAT $ALLOC_BITMAP, $UPCASE_TABLE
|
|
22
|
+
|
|
23
|
+
return True
|
|
24
|
+
|
|
9
25
|
|
|
10
26
|
class TskFilesystem:
|
|
11
27
|
_partition: Partition
|
|
@@ -35,8 +51,8 @@ class TskFilesystem:
|
|
|
35
51
|
if entry_name in [".", ".."]:
|
|
36
52
|
continue
|
|
37
53
|
|
|
38
|
-
# ignore deleted/unallocated entries with no metadata
|
|
39
|
-
if entry
|
|
54
|
+
# ignore deleted/unallocated entries with no metadata and TSK virtual files
|
|
55
|
+
if not _is_real_entry(entry, entry_name, at_root=path == Path("/")):
|
|
40
56
|
continue
|
|
41
57
|
|
|
42
58
|
entry_path: Path = path / entry_name
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|