daplapath 2.0.11__tar.gz → 2.0.12__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.11
3
+ Version: 2.0.12
4
4
  Summary: A pathlib.Path class for dapla
5
5
  License: MIT
6
6
  Author: ort
@@ -730,12 +730,7 @@ class Path(str, _PathBase):
730
730
  return self._new(self.split(self.suffix)[0] + self.suffix)
731
731
 
732
732
  def is_partitioned(self) -> bool:
733
- if (
734
- not self.suffix
735
- or self.suffix not in self
736
- or self.isfile()
737
- and self.count(self.suffix) != 2
738
- ):
733
+ if not self.suffix or self.count(self.suffix) != 2:
739
734
  return False
740
735
  return bool(len(self.glob(f"**/*{self.suffix}")))
741
736
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "daplapath"
3
- version = "2.0.11"
3
+ version = "2.0.12"
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