-
Notifications
You must be signed in to change notification settings - Fork 127
[QUAD] Enhancement : Report case sensitivity issues for create folder structure operation #6291
base: develop
Are you sure you want to change the base?
Conversation
}, | ||
{ | ||
"type": "label", | ||
"value": "Please move content and delete duplicate folders." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (88 > 79 characters)
"type": "label", | ||
"value": "The following pair of paths coexist in the same parent directory " | ||
"and its probably an issue (only the first folder path of every pair " | ||
"should exists):\n{}".format(path_list_str) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (80 > 79 characters)
{ | ||
"type": "label", | ||
"value": "The following pair of paths coexist in the same parent directory " | ||
"and its probably an issue (only the first folder path of every pair " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (107 > 79 characters)
}, | ||
{ | ||
"type": "label", | ||
"value": "The following pair of paths coexist in the same parent directory " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (104 > 79 characters)
# Prepare the list of pair paths that coexist | ||
path_list_str = "" | ||
for issue in case_sensitivity_issues: | ||
path_list_str = path_list_str + "\n{}\n{}\n".format(issue[0], issue[1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (91 > 79 characters)
create_project_folders(project_name, basic_paths) | ||
case_sensitivity_issues = create_project_folders(project_name, basic_paths) | ||
# Even if there are case sensitivity issues, the folders have been created, | ||
# so we still need to create the entities and trigger the event normally |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (84 > 79 characters)
@@ -84,14 +84,44 @@ def launch(self, session, entities, event): | |||
} | |||
|
|||
# Invoking OpenPype API to create the project folders | |||
create_project_folders(project_name, basic_paths) | |||
case_sensitivity_issues = create_project_folders(project_name, basic_paths) | |||
# Even if there are case sensitivity issues, the folders have been created, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (87 > 79 characters)
@@ -84,14 +84,44 @@ def launch(self, session, entities, event): | |||
} | |||
|
|||
# Invoking OpenPype API to create the project folders | |||
create_project_folders(project_name, basic_paths) | |||
case_sensitivity_issues = create_project_folders(project_name, basic_paths) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (87 > 79 characters)
# Else check for doppelgängers | ||
for dir_child_path_str in os.listdir(path_parent): | ||
if dir_child_path_str.lower() == path_part.lower(): | ||
case_sensitivity_issues.append((path_current, str(path_parent.joinpath(dir_child_path_str)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (117 > 79 characters)
No description provided.