panpath 0.4.2__tar.gz → 0.4.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.
- {panpath-0.4.2 → panpath-0.4.4}/PKG-INFO +1 -1
- {panpath-0.4.2 → panpath-0.4.4}/panpath/__init__.py +1 -1
- {panpath-0.4.2 → panpath-0.4.4}/panpath/cloud.py +3 -3
- {panpath-0.4.2 → panpath-0.4.4}/panpath/gs_async_client.py +1 -1
- {panpath-0.4.2 → panpath-0.4.4}/pyproject.toml +1 -1
- {panpath-0.4.2 → panpath-0.4.4}/LICENSE +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/README.md +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/azure_async_client.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/azure_client.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/azure_path.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/base.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/clients.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/exceptions.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/gs_client.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/gs_path.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/local_path.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/py.typed +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/registry.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/s3_async_client.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/s3_client.py +0 -0
- {panpath-0.4.2 → panpath-0.4.4}/panpath/s3_path.py +0 -0
|
@@ -843,9 +843,9 @@ class CloudPath(PanPath, PurePosixPath, ABC):
|
|
|
843
843
|
await dst_path.a_mkdir(parents=True, exist_ok=True)
|
|
844
844
|
|
|
845
845
|
# Walk source tree and copy all files
|
|
846
|
-
for dirpath, dirnames, filenames in
|
|
846
|
+
async for dirpath, dirnames, filenames in src_path.a_walk(): # type: ignore[attr-defined]
|
|
847
847
|
# Calculate relative path from src
|
|
848
|
-
rel_dir = dirpath[len(str(src)) :].lstrip("/")
|
|
848
|
+
rel_dir = str(dirpath)[len(str(src)) :].lstrip("/")
|
|
849
849
|
|
|
850
850
|
# Create subdirectories in destination
|
|
851
851
|
for dirname in dirnames:
|
|
@@ -854,7 +854,7 @@ class CloudPath(PanPath, PurePosixPath, ABC):
|
|
|
854
854
|
|
|
855
855
|
# Copy files
|
|
856
856
|
for filename in filenames:
|
|
857
|
-
src_file =
|
|
857
|
+
src_file = dirpath / filename
|
|
858
858
|
dst_file = dst_path / rel_dir / filename if rel_dir else dst_path / filename
|
|
859
859
|
# Handle symlinks
|
|
860
860
|
if not follow_symlinks and await src_file.a_is_symlink():
|
|
@@ -496,7 +496,7 @@ class AsyncGSClient(AsyncClient):
|
|
|
496
496
|
|
|
497
497
|
for item in items:
|
|
498
498
|
blob_name = item["name"]
|
|
499
|
-
if fnmatch(blob_name, f"{
|
|
499
|
+
if fnmatch(blob_name, f"{blob_prefix}{pattern}"):
|
|
500
500
|
yield f"{self.prefix[0]}://{bucket_name}/{blob_name}"
|
|
501
501
|
|
|
502
502
|
async def walk( # type: ignore[override]
|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "panpath"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.4"
|
|
8
8
|
description = "Universal sync/async local/cloud path library with pathlib-compatible interface"
|
|
9
9
|
authors = ["panpath contributors"]
|
|
10
10
|
readme = "README.md"
|
|
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
|