Home
last modified time | relevance | path

Searched refs:deleteIfExists (Results 1 – 20 of 20) sorted by relevance

/external/apache-commons-io/src/test/java/org/apache/commons/io/file/
DPathUtilsDeleteTest.java43 Files.deleteIfExists(tempDirPath); in testDeleteDirectory1FileSize0()
53 Files.deleteIfExists(tempDirPath); in testDeleteDirectory1FileSize0()
90 Files.deleteIfExists(tempDirPath); in testDeleteDirectory1FileSize1()
101 Files.deleteIfExists(tempDirPath); in testDeleteDirectory1FileSize1()
137 Files.deleteIfExists(tempDirPath); in testDeleteEmptyDirectory()
146 Files.deleteIfExists(tempDirPath); in testDeleteEmptyDirectory()
186 Files.deleteIfExists(tempDirPath); in testDeleteFileDoesNotExist()
DPathUtilsDeleteDirectoryTest.java41 Files.deleteIfExists(tempDirPath); in testDeleteDirectory1FileSize0()
52 Files.deleteIfExists(tempDirPath); in testDeleteDirectory1FileSize0()
73 Files.deleteIfExists(tempDirPath); in testDeleteDirectory1FileSize1()
84 Files.deleteIfExists(tempDirPath); in testDeleteDirectory2FileSize2()
94 Files.deleteIfExists(tempDirPath); in testDeleteEmptyDirectory()
DPathUtilsDeleteFileTest.java51 Files.deleteIfExists(tempDir); in afterEach()
85 Files.deleteIfExists(tempDir); in testDeleteFileDirectory1FileSize0()
97 Files.deleteIfExists(tempDir); in testDeleteFileDirectory1FileSize1()
107 Files.deleteIfExists(tempDir); in testDeleteFileDoesNotExist()
121 Files.deleteIfExists(tempDir); in testDeleteFileEmptyDirectory()
140 Files.deleteIfExists(tempDir); in testDeleteReadOnlyFileDirectory1FileSize1()
160 Files.deleteIfExists(tempDir); in testSetReadOnlyFileDirectory1FileSize1()
DDeletingPathVisitorTest.java54 Files.deleteIfExists(tempDir); in testDeleteEmptyDirectory()
65 Files.deleteIfExists(tempDir); in testDeleteEmptyDirectoryNullCtorArg()
77 Files.deleteIfExists(tempDir); in testDeleteFolders1FileSize0()
89 Files.deleteIfExists(tempDir); in testDeleteFolders1FileSize1()
116 Files.deleteIfExists(tempDir); in testDeleteFolders2FileSize2()
DFilesUncheckTest.java91 Files.deleteIfExists(NEW_FILE_PATH); in deleteFixtures()
92 Files.deleteIfExists(NEW_DIR_PATH); in deleteFixtures()
93 Files.deleteIfExists(NEW_FILE_PATH_LINK); in deleteFixtures()
164 assertFalse(FilesUncheck.deleteIfExists(NEW_FILE_PATH)); in testDeleteIfExists()
DPathUtilsTest.java479 Files.deleteIfExists(file); in testTouch()
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/
DGenerateCodeTask.java73 Files.deleteIfExists(cOutPath); in execute()
74 Files.deleteIfExists(javaOutPath); in execute()
DCleanOutputDirectoryTask.java323 Files.deleteIfExists(p); in deleteAllFiles()
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
DDiskLruCache.java325 deleteIfExists(journalFileTmp); in processJournal()
335 deleteIfExists(entry.getCleanFile(t)); in processJournal()
336 deleteIfExists(entry.getDirtyFile(t)); in processJournal()
386 private static void deleteIfExists(File file) throws IOException { in deleteIfExists() method in DiskLruCache
394 deleteIfExists(to); in renameTo()
533 deleteIfExists(dirty); in completeEdit()
/external/apache-commons-io/src/main/java/org/apache/commons/io/file/
DDeletingPathVisitor.java140 Files.deleteIfExists(dir); in postVisitDirectory()
159 Files.deleteIfExists(file); in visitFile()
DCleaningPathVisitor.java132 Files.deleteIfExists(file); in visitFile()
DFilesUncheck.java240 public static boolean deleteIfExists(final Path path) { in deleteIfExists() method in FilesUncheck
241 return Uncheck.apply(Files::deleteIfExists, path); in deleteIfExists()
DPathUtils.java539 if (Files.deleteIfExists(file)) { in deleteFile()
557 if (Files.deleteIfExists(file)) { in deleteFile()
/external/guava/android/guava-tests/test/com/google/common/io/
DFilesFileTraverserTest.java55 java.nio.file.Files.deleteIfExists(file); in tearDown()
64 java.nio.file.Files.deleteIfExists(dir); in tearDown()
/external/guava/guava-tests/test/com/google/common/io/
DFilesFileTraverserTest.java55 java.nio.file.Files.deleteIfExists(file); in tearDown()
64 java.nio.file.Files.deleteIfExists(dir); in tearDown()
DMoreFilesTest.java110 Files.deleteIfExists(file); in tearDown()
120 Files.deleteIfExists(dir); in tearDown()
674 if (Files.deleteIfExists(file)) { in startDirectorySymlinkSwitching()
/external/apache-commons-io/src/test/java/org/apache/commons/io/input/
DUnsynchronizedFilterInputStreamTest.java77 Files.deleteIfExists(fileName); in tearDown()
DUnsynchronizedBufferedInputStreamTest.java95 Files.deleteIfExists(fileName); in tearDown()
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DJimfsUnixLikeFileSystemTest.java1021 assertFalse(Files.deleteIfExists(path("/test"))); in testDelete_file()
1022 assertFalse(Files.deleteIfExists(path("/foo/bar"))); in testDelete_file()
1032 assertTrue(Files.deleteIfExists(path("/test"))); in testDelete_file()
1096 assertTrue(Files.deleteIfExists(path("/foo"))); in testDelete_directory()
1136 Files.deleteIfExists(path("/foo")); in testDelete_directory_cantDeleteNonEmptyDirectory()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DFixedLengthBlockOutputStreamTest.java199 Files.deleteIfExists(tempFile); in testWithFileOutputStream()