@ Override public boolean mkdirs ( Path path , FsPermission permission ) throws IOException { LOG . debug ( "mkdirs({}, {})" , path , permission ) ; if ( mStatistics != null ) { mStatistics . incrementWriteOps ( 1 ) ; } AlluxioURI uri = new AlluxioURI ( HadoopUtils . getPathWithoutScheme ( path ) ) ; CreateDirectoryPOptions options = CreateDirectoryPOptions . newBuilder ( ) . setRecursive ( true ) . setAllowExists ( true ) . setMode ( new Mode ( permission . toShort ( ) ) . toProto ( ) ) . build ( ) ; try { mFileSystem . createDirectory ( uri , options ) ; return true ; } catch ( AlluxioException e ) { throw new IOException ( e ) ; } }
Attempts to create a folder with the specified path . Parent directories will be created .