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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: panpath
3
- Version: 0.4.2
3
+ Version: 0.4.4
4
4
  Summary: Universal sync/async local/cloud path library with pathlib-compatible interface
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -56,7 +56,7 @@ except ImportError:
56
56
  # Azure dependencies not installed
57
57
  pass
58
58
 
59
- __version__ = "0.4.2"
59
+ __version__ = "0.4.4"
60
60
 
61
61
  __all__ = [
62
62
  "PanPath",
@@ -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 await src_path.a_walk(): # type: ignore[attr-defined]
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 = PanPath(dirpath) / filename # type: ignore[abstract]
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"{prefix}{pattern}"):
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.2"
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