src/main/java/org/apache/mesos/hdfs/executor/AbstractNodeExecutor.java
/**
   * Delete a file or directory.
   **/
Delete a file or directory.
Delete a file or directory .
protected void deleteFile(File fileToDelete) {
    if (fileToDelete.isDirectory()) {
      String[] entries = fileToDelete.list();
      for (String entry : entries) {
        File childFile = new File(fileToDelete.getPath(), entry);
        deleteFile(childFile);
      }
    }
    fileToDelete.delete();
  }
protected void deleteFile ( File fileToDelete ) { if ( fileToDelete . isDirectory ( ) ) { String [ ] entries = fileToDelete . list ( ) ; for ( String entry : entries ) { File childFile = new File ( fileToDelete . getPath ( ) , entry ) ; deleteFile ( childFile ) ; } } fileToDelete . delete ( ) ; }
Delete a file or directory.
Delete a file or directory .