Create missing directory

This commit is contained in:
tcely 2025-03-27 12:33:34 -04:00 committed by GitHub
parent 030b7e87a3
commit 64cfb3643a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,6 +31,7 @@ def source_pre_save(sender, instance, **kwargs):
log.debug(f'source_pre_save signal: no existing source: {sender} - {instance}')
return
mkdir_p(existing_source.directory_path.resolve(strict=False))
existing_dirpath = existing_source.directory_path.resolve(strict=True)
new_dirpath = instance.directory_path.resolve(strict=False)
if existing_dirpath != new_dirpath: