mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 22:46:34 +00:00
Create missing directory
This commit is contained in:
parent
030b7e87a3
commit
64cfb3643a
@ -31,6 +31,7 @@ def source_pre_save(sender, instance, **kwargs):
|
|||||||
log.debug(f'source_pre_save signal: no existing source: {sender} - {instance}')
|
log.debug(f'source_pre_save signal: no existing source: {sender} - {instance}')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
mkdir_p(existing_source.directory_path.resolve(strict=False))
|
||||||
existing_dirpath = existing_source.directory_path.resolve(strict=True)
|
existing_dirpath = existing_source.directory_path.resolve(strict=True)
|
||||||
new_dirpath = instance.directory_path.resolve(strict=False)
|
new_dirpath = instance.directory_path.resolve(strict=False)
|
||||||
if existing_dirpath != new_dirpath:
|
if existing_dirpath != new_dirpath:
|
||||||
|
Loading…
Reference in New Issue
Block a user