Create the directory if not exists
Build and test backend / Build-backend (push) Waiting to run
Build and test backend / Test-backend (push) Waiting to run
deploy to production / deploy-frontend (push) Waiting to run
deploy to production / deploy-backend (push) Waiting to run
Build and test FrontEnd / Build-frontend (push) Waiting to run

This commit was merged in pull request #100.
This commit is contained in:
tonitch authored and Debucquoy Anthony committed 2024-03-14 22:36:48 +01:00
1 parent c26972369f
commit 826bbf5990
1 file changed
+8
@@ -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();
}
}
}