superpathlib 2.0.3__tar.gz → 2.0.4__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.
- {superpathlib-2.0.3/src/superpathlib.egg-info → superpathlib-2.0.4}/PKG-INFO +1 -1
- {superpathlib-2.0.3 → superpathlib-2.0.4}/pyproject.toml +1 -1
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/metadata_properties.py +2 -4
- {superpathlib-2.0.3 → superpathlib-2.0.4/src/superpathlib.egg-info}/PKG-INFO +1 -1
- {superpathlib-2.0.3 → superpathlib-2.0.4}/LICENSE +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/README.md +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/setup.cfg +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/__init__.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/base.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/cached_content.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/common_folders.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/content_properties.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/encryption.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/extra_functionality.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/override.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/path.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/py.typed +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/tags.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib/utils.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib.egg-info/SOURCES.txt +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib.egg-info/dependency_links.txt +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib.egg-info/requires.txt +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/src/superpathlib.egg-info/top_level.txt +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/tests/test_cached_content.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/tests/test_common_folders.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/tests/test_content.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/tests/test_encrypted_content.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/tests/test_functionality.py +0 -0
- {superpathlib-2.0.3 → superpathlib-2.0.4}/tests/test_metadata.py +0 -0
|
@@ -2,11 +2,10 @@ import hashlib
|
|
|
2
2
|
import mimetypes
|
|
3
3
|
import os
|
|
4
4
|
import subprocess
|
|
5
|
-
import typing
|
|
6
5
|
import warnings
|
|
7
6
|
from collections.abc import Callable
|
|
8
7
|
from functools import wraps
|
|
9
|
-
from typing import Any, TypeVar
|
|
8
|
+
from typing import Any, TypeVar, cast
|
|
10
9
|
|
|
11
10
|
from . import content_properties
|
|
12
11
|
|
|
@@ -117,8 +116,7 @@ class Path(content_properties.Path):
|
|
|
117
116
|
|
|
118
117
|
# use default algorithm used in cloud provider checksums
|
|
119
118
|
# can be efficient because not used for cryptographic security
|
|
120
|
-
|
|
121
|
-
return typing.cast(str, content_hash)
|
|
119
|
+
return cast(str, dirhash.dirhash(self, "md5")) if self.has_children else None
|
|
122
120
|
|
|
123
121
|
@property
|
|
124
122
|
def file_content_hash(self) -> str:
|
|
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
|