1
0
forked from PGL/Clyde

Create the directory if not exists

This commit is contained in:
Debucquoy Anthony 2024-03-13 19:53:27 +01:00 committed by Debucquoy Anthony
parent c26972369f
commit 826bbf5990

View File

@ -24,6 +24,14 @@ public class StorageService {
public StorageService(FileRepository filerepo){
this.fileRepo = filerepo;
if(!Files.exists(rootLocation)){
try {
Files.createDirectories(rootLocation);
} catch(IOException e){
e.printStackTrace();
}
}
}