pathlib-next 0.1.0__tar.gz → 0.1.2__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.
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/PKG-INFO +1 -1
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/pyproject.toml +1 -1
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/fspath.py +1 -22
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/path.py +0 -20
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/uri/__init__.py +7 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/.gitignore +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/LICENSE +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/README.md +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/example.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/__init__.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/uri/query.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/uri/schemes/__init__.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/uri/schemes/file.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/uri/schemes/http.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/uri/schemes/sftp.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/uri/source.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/utils/__init__.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/utils/glob.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/utils/stat.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/src/pathlib_next/utils/sync.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/tests/test_local.py +0 -0
- {pathlib_next-0.1.0 → pathlib_next-0.1.2}/tests/test_uri.py +0 -0
|
@@ -73,31 +73,10 @@ class LocalPath(
|
|
|
73
73
|
and pattern[-1] in self._path_separators
|
|
74
74
|
)
|
|
75
75
|
yield from _proto.Path.glob(
|
|
76
|
-
self,
|
|
77
76
|
self,
|
|
78
77
|
pattern,
|
|
79
78
|
case_sensitive=case_sensitive,
|
|
80
79
|
include_hidden=include_hidden,
|
|
81
80
|
recursive=recursive,
|
|
82
81
|
dironly=dironly,
|
|
83
|
-
)
|
|
84
|
-
|
|
85
|
-
def rglob(
|
|
86
|
-
self,
|
|
87
|
-
pattern: str,
|
|
88
|
-
*,
|
|
89
|
-
case_sensitive: bool = None,
|
|
90
|
-
include_hidden: bool = False,
|
|
91
|
-
dironly: bool = False,
|
|
92
|
-
):
|
|
93
|
-
"""Recursively yield all existing files (of any kind, including
|
|
94
|
-
directories) matching the given relative pattern, anywhere in
|
|
95
|
-
this subtree.
|
|
96
|
-
"""
|
|
97
|
-
yield from self.glob(
|
|
98
|
-
pattern,
|
|
99
|
-
case_sensitive=case_sensitive,
|
|
100
|
-
include_hidden=include_hidden,
|
|
101
|
-
recursive=True,
|
|
102
|
-
dironly=dironly,
|
|
103
|
-
)
|
|
82
|
+
)
|
|
@@ -416,26 +416,6 @@ class Path(Pathname):
|
|
|
416
416
|
dironly=dironly,
|
|
417
417
|
)
|
|
418
418
|
|
|
419
|
-
def rglob(
|
|
420
|
-
self,
|
|
421
|
-
pattern: str | _ty.Self,
|
|
422
|
-
*,
|
|
423
|
-
case_sensitive: bool = None,
|
|
424
|
-
include_hidden: bool = False,
|
|
425
|
-
dironly: bool = None,
|
|
426
|
-
):
|
|
427
|
-
"""Recursively yield all existing files (of any kind, including
|
|
428
|
-
directories) matching the given relative pattern, anywhere in
|
|
429
|
-
this subtree.
|
|
430
|
-
"""
|
|
431
|
-
yield from self.glob(
|
|
432
|
-
pattern,
|
|
433
|
-
case_sensitive=case_sensitive,
|
|
434
|
-
include_hidden=include_hidden,
|
|
435
|
-
recursive=True,
|
|
436
|
-
dironly=dironly,
|
|
437
|
-
)
|
|
438
|
-
|
|
439
419
|
def walk(
|
|
440
420
|
self,
|
|
441
421
|
top_down=True,
|
|
@@ -404,6 +404,13 @@ class UriPath(Uri, Path):
|
|
|
404
404
|
def _initbackend(self):
|
|
405
405
|
return None
|
|
406
406
|
|
|
407
|
+
def _from_parsed_parts(
|
|
408
|
+
self, source: Source, path: str, query: str, fragment: str, /, **kwargs
|
|
409
|
+
):
|
|
410
|
+
if "backend" not in kwargs:
|
|
411
|
+
kwargs["backend"] = self.backend
|
|
412
|
+
return super()._from_parsed_parts(source, path, query, fragment, **kwargs)
|
|
413
|
+
|
|
407
414
|
def _init(
|
|
408
415
|
self,
|
|
409
416
|
source: Source,
|
|
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
|