Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
leonrohne27 committed Nov 25, 2024
1 parent a2e3ca9 commit 374a059
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ public void CheckIfLegacyFolderExists() {
// Rename the "devon" folder to "templates"
Files.move(devonFolder, templatesFolder, StandardCopyOption.REPLACE_EXISTING);
this.context.success("Successfully updated folder name from 'settings/devon' to 'settings/templates'.");
} else {
this.context.warning("The 'templates' folder already exists, skipping renaming.");
}
} catch (IOException e) {
this.context.error("Error updating 'settings/devon' folder to 'settings/templates': " + e.getMessage());
}
} else {
this.context.warning("The 'templates' folder already exists, skipping renaming.");
}
// Check if the "projects" folder already exists
if (Files.exists(projectsFolder) && Files.isDirectory(projectsFolder)) {
Expand All @@ -146,12 +146,12 @@ public void CheckIfLegacyFolderExists() {
// Rename the "projects" folder to "repositories"
Files.move(projectsFolder, repositoriesFolder, StandardCopyOption.REPLACE_EXISTING);
this.context.success("Successfully updated folder name from 'settings/projects' to 'settings/repositories'.");
} else {
this.context.warning("The 'repositories' folder already exists, skipping renaming.");
}
} catch (IOException e) {
this.context.error("Error updating 'settings/projects' folder to 'settings/repositories': " + e.getMessage());
}
} else {
this.context.warning("The 'repositories' folder already exists, skipping renaming.");
}
}
}

0 comments on commit 374a059

Please sign in to comment.