dissect.fat 3.10.dev3__tar.gz → 3.11__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.
- {dissect_fat-3.10.dev3/dissect.fat.egg-info → dissect_fat-3.11}/PKG-INFO +1 -1
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/dissect/fat/exceptions.py +6 -2
- {dissect_fat-3.10.dev3 → dissect_fat-3.11/dissect.fat.egg-info}/PKG-INFO +1 -1
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/dissect.fat.egg-info/SOURCES.txt +1 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/pyproject.toml +0 -1
- dissect_fat-3.11/tests/test_exceptions.py +19 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/COPYRIGHT +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/LICENSE +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/MANIFEST.in +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/README.md +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/dissect/fat/__init__.py +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/dissect/fat/c_exfat.py +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/dissect/fat/c_fat.py +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/dissect/fat/exfat.py +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/dissect/fat/fat.py +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/dissect.fat.egg-info/dependency_links.txt +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/dissect.fat.egg-info/requires.txt +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/dissect.fat.egg-info/top_level.txt +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/setup.cfg +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tests/__init__.py +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tests/conftest.py +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tests/data/exfat.bin +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tests/data/fat12.bin +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tests/data/fat16.bin +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tests/data/fat32.bin +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tests/docs/Makefile +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tests/docs/conf.py +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tests/docs/index.rst +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tests/test_exfat.py +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tests/test_fat.py +0 -0
- {dissect_fat-3.10.dev3 → dissect_fat-3.11}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dissect.fat
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.11
|
|
4
4
|
Summary: A Dissect module implementing parsers for the FAT and exFAT file systems, commonly used on flash memory based storage devices and UEFI partitions
|
|
5
5
|
Author-email: Dissect Team <dissect@fox-it.com>
|
|
6
6
|
License: Affero General Public License v3
|
|
@@ -30,9 +30,13 @@ class InvalidDirectoryError(Error):
|
|
|
30
30
|
pass
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class FileNotFoundError(Error):
|
|
33
|
+
class FileNotFoundError(Error, FileNotFoundError):
|
|
34
34
|
pass
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class IsADirectoryError(Error, IsADirectoryError):
|
|
38
|
+
pass
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class NotADirectoryError(Error, NotADirectoryError):
|
|
38
42
|
pass
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dissect.fat
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.11
|
|
4
4
|
Summary: A Dissect module implementing parsers for the FAT and exFAT file systems, commonly used on flash memory based storage devices and UEFI partitions
|
|
5
5
|
Author-email: Dissect Team <dissect@fox-it.com>
|
|
6
6
|
License: Affero General Public License v3
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
|
|
3
|
+
from dissect.fat import exceptions
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@pytest.mark.parametrize(
|
|
7
|
+
"exc, std",
|
|
8
|
+
[
|
|
9
|
+
(exceptions.FileNotFoundError, FileNotFoundError),
|
|
10
|
+
(exceptions.IsADirectoryError, IsADirectoryError),
|
|
11
|
+
(exceptions.NotADirectoryError, NotADirectoryError),
|
|
12
|
+
],
|
|
13
|
+
)
|
|
14
|
+
def test_filesystem_error_subclass(exc: exceptions.Error, std: Exception) -> None:
|
|
15
|
+
assert issubclass(exc, std)
|
|
16
|
+
assert isinstance(exc(), std)
|
|
17
|
+
|
|
18
|
+
with pytest.raises(std):
|
|
19
|
+
raise exc()
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|