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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: daplapath
3
- Version: 2.0.13
3
+ Version: 2.1.1
4
4
  Summary: A pathlib.Path class for dapla
5
5
  License: MIT
6
6
  Author: ort
@@ -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 = PurePosixPath(obj)
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)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "daplapath"
3
- version = "2.0.13"
3
+ version = "2.1.1"
4
4
  description = "A pathlib.Path class for dapla"
5
5
  authors = ["ort <ort@ssb.no>"]
6
6
  license = "MIT"
File without changes
File without changes