fix: intialise profile folder if not exist

This commit is contained in:
Sam Chau
2024-09-03 18:38:29 +09:30
parent 7f0979a802
commit dbbad3816f

View File

@@ -326,7 +326,7 @@ class SettingsManager:
logger.info(f"Moving cloned repo from {temp_dir} to {self.repo_path}")
shutil.move(temp_dir, self.repo_path)
for folder_name in ['regex_patterns', 'custom_formats']:
for folder_name in ['regex_patterns', 'custom_formats', 'profiles']:
folder_path = os.path.join(self.repo_path, folder_name)
backup_folder_path = os.path.join(backup_dir, folder_name)