mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
skip folders creation if are not set
This commit is contained in:
parent
c7ffda124e
commit
27e74ee009
1 changed files with 3 additions and 1 deletions
|
|
@ -60,6 +60,9 @@ def create_project_folders(project_name, basic_paths=None):
|
|||
if basic_paths is None:
|
||||
basic_paths = get_project_basic_paths(project_name)
|
||||
|
||||
if not basic_paths:
|
||||
return
|
||||
|
||||
concat_paths = concatenate_splitted_paths(basic_paths, anatomy)
|
||||
filled_paths = fill_paths(concat_paths, anatomy)
|
||||
|
||||
|
|
@ -70,7 +73,6 @@ def create_project_folders(project_name, basic_paths=None):
|
|||
else:
|
||||
log.debug("Creating folder: {}".format(path))
|
||||
os.makedirs(path)
|
||||
return filled_paths
|
||||
|
||||
|
||||
def _list_path_items(folder_structure):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue