private int rmInternal ( String path ) { final AlluxioURI turi = mPathResolverCache . getUnchecked ( path ) ; try { mFileSystem . delete ( turi ) ; } catch ( FileDoesNotExistException | InvalidPathException e ) { LOG . debug ( "Failed to remove {}, file does not exist or is invalid" , path ) ; return - ErrorCodes . ENOENT ( ) ; } catch ( Throwable t ) { LOG . error ( "Failed to remove {}" , path , t ) ; return AlluxioFuseUtils . getErrorCode ( t ) ; } return 0 ; }
Convenience internal method to remove files or non - empty directories .