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