Create the directory if not exists
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 2m2s
Build and test backend / Test-backend (pull_request) Successful in 1m57s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 26s

This commit is contained in:
Debucquoy Anthony 2024-03-13 19:53:27 +01:00
parent cead1188ab
commit 08c3800bae
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

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