superpathlib 2.0.1__tar.gz → 2.0.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.
Files changed (29) hide show
  1. {superpathlib-2.0.1/src/superpathlib.egg-info → superpathlib-2.0.2}/PKG-INFO +1 -1
  2. {superpathlib-2.0.1 → superpathlib-2.0.2}/pyproject.toml +1 -1
  3. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/extra_functionality.py +4 -1
  4. {superpathlib-2.0.1 → superpathlib-2.0.2/src/superpathlib.egg-info}/PKG-INFO +1 -1
  5. {superpathlib-2.0.1 → superpathlib-2.0.2}/LICENSE +0 -0
  6. {superpathlib-2.0.1 → superpathlib-2.0.2}/README.md +0 -0
  7. {superpathlib-2.0.1 → superpathlib-2.0.2}/setup.cfg +0 -0
  8. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/__init__.py +0 -0
  9. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/base.py +0 -0
  10. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/cached_content.py +0 -0
  11. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/common_folders.py +0 -0
  12. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/content_properties.py +0 -0
  13. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/encryption.py +0 -0
  14. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/metadata_properties.py +0 -0
  15. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/override.py +0 -0
  16. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/path.py +0 -0
  17. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/py.typed +0 -0
  18. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/tags.py +0 -0
  19. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib/utils.py +0 -0
  20. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib.egg-info/SOURCES.txt +0 -0
  21. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib.egg-info/dependency_links.txt +0 -0
  22. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib.egg-info/requires.txt +0 -0
  23. {superpathlib-2.0.1 → superpathlib-2.0.2}/src/superpathlib.egg-info/top_level.txt +0 -0
  24. {superpathlib-2.0.1 → superpathlib-2.0.2}/tests/test_cached_content.py +0 -0
  25. {superpathlib-2.0.1 → superpathlib-2.0.2}/tests/test_common_folders.py +0 -0
  26. {superpathlib-2.0.1 → superpathlib-2.0.2}/tests/test_content.py +0 -0
  27. {superpathlib-2.0.1 → superpathlib-2.0.2}/tests/test_encrypted_content.py +0 -0
  28. {superpathlib-2.0.1 → superpathlib-2.0.2}/tests/test_functionality.py +0 -0
  29. {superpathlib-2.0.1 → superpathlib-2.0.2}/tests/test_metadata.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: superpathlib
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Extended Pathlib
5
5
  Author-email: Quinten Roets <qdr2104@columbia.edu>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "superpathlib"
3
- version = "2.0.1"
3
+ version = "2.0.2"
4
4
  description = "Extended Pathlib"
5
5
  authors = [{name = "Quinten Roets", email = "qdr2104@columbia.edu"}]
6
6
  license = {text = "MIT"}
@@ -113,7 +113,10 @@ class Path(cached_content.Path):
113
113
  extract_dir = cast_path(extract_dir)
114
114
 
115
115
  if remove_existing:
116
- extract_dir.rmtree(missing_ok=True)
116
+ if extract_dir.is_dir():
117
+ extract_dir.rmtree(missing_ok=True)
118
+ else:
119
+ extract_dir.unlink(missing_ok=True)
117
120
 
118
121
  shutil.unpack_archive(self, extract_dir=extract_dir, format=archive_format)
119
122
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: superpathlib
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Extended Pathlib
5
5
  Author-email: Quinten Roets <qdr2104@columbia.edu>
6
6
  License: MIT
File without changes
File without changes
File without changes