diff --git a/bu_isciii/utils.py b/bu_isciii/utils.py index f50f7758..eca3c484 100755 --- a/bu_isciii/utils.py +++ b/bu_isciii/utils.py @@ -506,12 +506,22 @@ def remake_permissions(copied_folder_path, permissions_config): copied_folder_path: The path to the folder that was copied permissions_config: Dictionary containing permissions configuration (e.g., {'directory_chmod': '755', 'file_chmod': '664'}) """ - subprocess.run(f"chown -R $(whoami):bi {copied_folder_path}", shell=True, check=True) + subprocess.run( + f"chown -R $(whoami):bi {copied_folder_path}", shell=True, check=True + ) # Change permissions for directories if "directory_chmod" in permissions_config: - subprocess.run(f"find {copied_folder_path} -type d -exec chmod {permissions_config['directory_chmod']} {{}} \;", shell=True, check=True) + subprocess.run( + f"find {copied_folder_path} -type d -exec chmod {permissions_config['directory_chmod']} {{}} \;", + shell=True, + check=True, + ) # Change permissions for files if "file_chmod" in permissions_config: - subprocess.run(f"find {copied_folder_path} -type f -exec chmod {permissions_config['file_chmod']} {{}} \;", shell=True, check=True) + subprocess.run( + f"find {copied_folder_path} -type f -exec chmod {permissions_config['file_chmod']} {{}} \;", + shell=True, + check=True, + )