public static Optional < Path > createDirectories ( Path dirPath , FileAttribute < ? > ... attrs ) { debug ( log , "createDirectories" , dirPath , attrs ) ; try { return Optional . of ( Files . createDirectories ( dirPath , attrs ) ) ; } catch ( Exception e ) { return JMExceptionManager . handleExceptionAndReturnEmptyOptional ( log , e , "createDirectories" , dirPath ) ; } }
Create directories optional .