There is a _ already

This commit is contained in:
tcely 2025-03-01 00:12:17 -05:00 committed by GitHub
parent d1f6c8184a
commit 8b611aa71b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ def source_pre_save(sender, instance, **kwargs):
# the names in the relative path are also in the absolute path # the names in the relative path are also in the absolute path
parents_count = len(ad_parents_set.intersection(rd_parents_set)) parents_count = len(ad_parents_set.intersection(rd_parents_set))
work_directory = existing_dirpath work_directory = existing_dirpath
for _ in range(parents_count, 0, -1): for _count in range(parents_count, 0, -1):
work_directory = work_directory.parent work_directory = work_directory.parent
with TemporaryDirectory(suffix=('.'+new_dirpath.name), prefix='.tmp.', dir=work_directory) as tmp_dir: with TemporaryDirectory(suffix=('.'+new_dirpath.name), prefix='.tmp.', dir=work_directory) as tmp_dir:
tmp_dirpath = Path(tmp_dir) tmp_dirpath = Path(tmp_dir)