-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ArtifactoryPath: fix mkdir and rmdir with Python 3.11 pathlib in Python 3.11 implements mkdir and rmdir directly in terms of calling os.<func> without any accessor layer. So copy the implementations of those functions from Python 3.10 to get the previous behavior back. Fixes: #415 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> * test_artifactory_path: Add basic unit test for mkdir() Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> * ArtifactoryPath: Fix glob() in Python 3.11 Python 3.11 replaced _accessor.scandir with _scandir. Override _scandir to still use our implementation. Should be a noop on older Python versions because they didn't have _scandir at all. Fixes: #396 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> --------- Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
- Loading branch information
1 parent
c0531a5
commit 5278d06
Showing
2 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters