@ VisibleForTesting static void createUploadDir ( final Path uploadDir , final Logger log , final boolean initialCreation ) throws IOException { if ( ! Files . exists ( uploadDir ) ) { if ( initialCreation ) { log . info ( "Upload directory {} does not exist. " + uploadDir ) ; } else { log . warn ( "Upload directory {} has been deleted externally. " + "Previously uploaded files are no longer available." , uploadDir ) ; } checkAndCreateUploadDir ( uploadDir , log ) ; } }
Creates the upload dir if needed .