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);
        }
    }
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.

@param dirPath the dir path
@param attrs   the attrs
@return the optional