Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for deleteDirectory (0.1 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

                File file = (File) it.next();
    
                if (file.exists()) {
                    if (file.isDirectory()) {
                        FileUtils.deleteDirectory(file);
                    } else {
                        file.delete();
                    }
                }
    
                it.remove();
            }
    
            warnAboutCleanup = false;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

        }
    
        private Artifact createTestPomArtifact(String directory) throws IOException {
            File testData = getTestFile(directory);
            FileUtils.deleteDirectory(testData);
            testData.mkdirs();
    
            Artifact artifact = artifactFactory.createProjectArtifact("test", "test", "1.0");
            artifact.setFile(new File(testData, "test-1.0.pom"));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/MoreFiles.java

            // directory, so we shouldn't try to delete the directory as it will probably fail.
            if (exceptions == null) {
              dir.deleteDirectory(path);
            }
          } else {
            dir.deleteFile(path);
          }
    
          return exceptions;
        } catch (IOException e) {
          return addException(exceptions, e);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/MoreFiles.java

            // directory, so we shouldn't try to delete the directory as it will probably fail.
            if (exceptions == null) {
              dir.deleteDirectory(path);
            }
          } else {
            dir.deleteFile(path);
          }
    
          return exceptions;
        } catch (IOException e) {
          return addException(exceptions, e);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top