Create the directory if not exists
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
		
			
				
	
				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
				
			
		
		
	
	
				
					
				
			
		
			Some checks are pending
		
		
	
	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 is contained in:
		| @ -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(); | ||||
| 			} | ||||
| 		} | ||||
|     } | ||||
|  | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user