- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for deleteIfExists (1.42 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt
} } else { entry.currentEditor = null for (t in 0 until valueCount) { fileSystem.deleteIfExists(entry.cleanFiles[t]) fileSystem.deleteIfExists(entry.dirtyFiles[t]) } i.remove() } } } /** * Creates a new journal that omits redundant information. This replaces the current journal if it * exists. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 34.7K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java
return Optional.of(Files.readAllBytes(tempPath)); } return Optional.empty(); } finally { if (tempPath != null) { Files.deleteIfExists(tempPath); } } } catch (IOException e) { throw new UncheckedIOException(e); } } @Override
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 16:33:18 GMT 2024 - 5.3K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Jan 10 12:55:54 GMT 2024 - 5.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
new SimpleFileVisitor<Path>() { @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { Files.deleteIfExists(file); return FileVisitResult.CONTINUE; } @Override public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Jan 29 22:57:05 GMT 2024 - 27.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ThemeHelper.java
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/tests/PACTest.java
Pac pac = pacData.getPac(); PacLogonInfo li = pac.getLogonInfo(); Assert.assertEquals("test1", li.getUserName()); } finally { Files.deleteIfExists(p); Files.deleteIfExists(krbConfig); } }
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Oct 01 12:01:17 GMT 2023 - 22.3K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java
mavenProjectHelper.attachArtifact(mavenProject, "java-source", artifactFile); assertEquals(1, mavenProject.getAttachedArtifacts().size()); } finally { Files.deleteIfExists(artifactFile.toPath()); } }
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 4.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
} public static void deleteInBackground(final File file) { if (file != null) { TimeoutManager.getInstance().addTimeoutTarget(() -> { try { Files.deleteIfExists(file.toPath()); } catch (final IOException e) { throw new IORuntimeException(e); } }, 0, false); } }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
delete(file) return true } catch (_: IOException) { } } delete(file) return false } /** Delete file we expect but don't require to exist. */ internal fun FileSystem.deleteIfExists(path: Path) { try { delete(path) } catch (fnfe: FileNotFoundException) { return } } /** Tolerant delete, try to clear as many files as possible even after a failure. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11K bytes - Viewed (0)