- public static void createPrivateDirectories(String path) throws IOException {
- final Path file = new File(path).toPath();
+ public static void createPrivateDirectories(String directoryPath) throws IOException {
+ final File file = new File(directoryPath);
+ if (file.exists()) {
+ return;
+ }
+
+ final Path path = file.toPath();