edir 2.37__tar.gz → 2.38__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.
- {edir-2.37 → edir-2.38}/PKG-INFO +1 -1
- {edir-2.37 → edir-2.38}/edir.egg-info/PKG-INFO +1 -1
- edir-2.38/edir.egg-info/scm_version.json +8 -0
- {edir-2.37 → edir-2.38}/edir.py +8 -5
- edir-2.37/edir.egg-info/scm_version.json +0 -8
- {edir-2.37 → edir-2.38}/.gitignore +0 -0
- {edir-2.37 → edir-2.38}/README.md +0 -0
- {edir-2.37 → edir-2.38}/edir.egg-info/SOURCES.txt +0 -0
- {edir-2.37 → edir-2.38}/edir.egg-info/dependency_links.txt +0 -0
- {edir-2.37 → edir-2.38}/edir.egg-info/entry_points.txt +0 -0
- {edir-2.37 → edir-2.38}/edir.egg-info/requires.txt +0 -0
- {edir-2.37 → edir-2.38}/edir.egg-info/scm_file_list.json +0 -0
- {edir-2.37 → edir-2.38}/edir.egg-info/top_level.txt +0 -0
- {edir-2.37 → edir-2.38}/justfile +0 -0
- {edir-2.37 → edir-2.38}/pyproject.toml +0 -0
- {edir-2.37 → edir-2.38}/setup.cfg +0 -0
{edir-2.37 → edir-2.38}/PKG-INFO
RENAMED
{edir-2.37 → edir-2.38}/edir.py
RENAMED
|
@@ -289,7 +289,7 @@ class Fpath:
|
|
|
289
289
|
tempdirs = set()
|
|
290
290
|
natsort_key: Callable
|
|
291
291
|
|
|
292
|
-
def __init__(self, path: Path):
|
|
292
|
+
def __init__(self, path: Path) -> None:
|
|
293
293
|
"Class constructor"
|
|
294
294
|
self.path = path
|
|
295
295
|
self.newpath = None
|
|
@@ -312,14 +312,18 @@ class Fpath:
|
|
|
312
312
|
self.diagrepr += SEP
|
|
313
313
|
|
|
314
314
|
@staticmethod
|
|
315
|
-
def inc_path(path: Path) -> Path:
|
|
315
|
+
def inc_path(path: Path, check_list: list[Path] | None = None) -> Path:
|
|
316
316
|
"Find next unique file name"
|
|
317
317
|
# Iterate forever, there can only be a finite number of existing
|
|
318
318
|
# paths
|
|
319
|
+
if check_list is None:
|
|
320
|
+
check_list = []
|
|
321
|
+
|
|
319
322
|
name = path.name
|
|
320
323
|
for c in itertools.count():
|
|
321
|
-
if not path.is_symlink() and not path.exists():
|
|
324
|
+
if not path.is_symlink() and not path.exists() and path not in check_list:
|
|
322
325
|
break
|
|
326
|
+
|
|
323
327
|
path = path.with_name(args._copy_name(name, c))
|
|
324
328
|
|
|
325
329
|
return path
|
|
@@ -545,8 +549,7 @@ class Fpath:
|
|
|
545
549
|
newpath = Path(pathstr)
|
|
546
550
|
|
|
547
551
|
if path.newpath:
|
|
548
|
-
|
|
549
|
-
path.copies.append(newpath)
|
|
552
|
+
path.copies.append(cls.inc_path(newpath, path.copies))
|
|
550
553
|
else:
|
|
551
554
|
path.newpath = newpath
|
|
552
555
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{edir-2.37 → edir-2.38}/justfile
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|