daplapath 2.0.13__tar.gz → 2.1.1__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.
- {daplapath-2.0.13 → daplapath-2.1.1}/PKG-INFO +1 -1
- {daplapath-2.0.13 → daplapath-2.1.1}/daplapath/path.py +4 -1
- {daplapath-2.0.13 → daplapath-2.1.1}/pyproject.toml +1 -1
- {daplapath-2.0.13 → daplapath-2.1.1}/LICENSE.md +0 -0
- {daplapath-2.0.13 → daplapath-2.1.1}/README.md +0 -0
- {daplapath-2.0.13 → daplapath-2.1.1}/daplapath/__init__.py +0 -0
|
@@ -228,7 +228,7 @@ class Path(str, _PathBase):
|
|
|
228
228
|
"""Construct Path with '/' as delimiter."""
|
|
229
229
|
gcs_path = cls._standardize_path(gcs_path or "")
|
|
230
230
|
obj = super().__new__(cls, gcs_path)
|
|
231
|
-
obj._path =
|
|
231
|
+
obj._path = pathlib.Path(obj)
|
|
232
232
|
obj._file_system = file_system
|
|
233
233
|
return obj
|
|
234
234
|
|
|
@@ -342,6 +342,9 @@ class Path(str, _PathBase):
|
|
|
342
342
|
pass
|
|
343
343
|
return out_path
|
|
344
344
|
|
|
345
|
+
def read_text(self, *args, **kwargs):
|
|
346
|
+
return self._path.read_text(*args, **kwargs)
|
|
347
|
+
|
|
345
348
|
def versions(self, include_versionless: bool = False) -> "PathSeries":
|
|
346
349
|
"""Returns a PathSeries of all versions of the file."""
|
|
347
350
|
files_in_folder: Iterable[Path] = self.parent.glob("**", recursive=False)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|