public static void deleteFileIfExists ( UnderFileSystem ufs , String path ) { try { if ( ufs . isFile ( path ) ) { ufs . deleteFile ( path ) ; } } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
Deletes the specified path from the specified under file system if it is a file and exists .