Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for deleteRecursively (0.11 sec)

  1. guava-tests/test/com/google/common/io/MoreFilesTest.java

          MoreFiles.deleteRecursively(file);
    
          assertFalse(Files.exists(file, NOFOLLOW_LINKS));
    
          Path symlink = fs.getPath("/symlinktodir");
          assertTrue(Files.isSymbolicLink(symlink));
    
          Path realSymlinkTarget = symlink.toRealPath();
          assertTrue(Files.isDirectory(realSymlinkTarget, NOFOLLOW_LINKS));
    
          MoreFiles.deleteRecursively(symlink);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

          MoreFiles.deleteRecursively(file);
    
          assertFalse(Files.exists(file, NOFOLLOW_LINKS));
    
          Path symlink = fs.getPath("/symlinktodir");
          assertTrue(Files.isSymbolicLink(symlink));
    
          Path realSymlinkTarget = symlink.toRealPath();
          assertTrue(Files.isDirectory(realSymlinkTarget, NOFOLLOW_LINKS));
    
          MoreFiles.deleteRecursively(symlink);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/io/FaultyFileSystem.kt

        super.delete(path, mustExist)
      }
    
      @Throws(IOException::class)
      override fun deleteRecursively(
        fileOrDirectory: Path,
        mustExist: Boolean,
      ) {
        if (deleteFaults.contains(fileOrDirectory)) throw IOException("boom!")
        super.deleteRecursively(fileOrDirectory, mustExist)
      }
    
      override fun appendingSink(
        file: Path,
        mustExist: Boolean,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

              .build(),
          )
          .addQuicHint("google.com", 443, 443)
          .addQuicHint("www.google.com", 443, 443)
          .build()
    
      @After
      fun tearDown() {
        engine.shutdown()
        cacheDir.deleteRecursively()
      }
    
      @Test
      fun get() {
        val executor = Executors.newCachedThreadPool()
    
        val completableFuture = execute(engine, executor, "https://google.com/robots.txt")
    
        try {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 24 13:19:43 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/RecursiveDeleteOption.java

    import com.google.j2objc.annotations.J2ObjCIncompatible;
    import java.nio.file.SecureDirectoryStream;
    
    /**
     * Options for use with recursive delete methods ({@link MoreFiles#deleteRecursively} and {@link
     * MoreFiles#deleteDirectoryContents}).
     *
     * @since NEXT (but since 21.0 in the JRE flavor)
     * @author Colin Decker
     */
    @J2ktIncompatible
    @GwtIncompatible
    @J2ObjCIncompatible // java.nio.file
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/RecursiveDeleteOption.java

    import com.google.j2objc.annotations.J2ObjCIncompatible;
    import java.nio.file.SecureDirectoryStream;
    
    /**
     * Options for use with recursive delete methods ({@link MoreFiles#deleteRecursively} and {@link
     * MoreFiles#deleteDirectoryContents}).
     *
     * @since 21.0 (but only since 33.4.0 in the Android flavor)
     * @author Colin Decker
     */
    @J2ktIncompatible
    @GwtIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt

      @BeforeEach
      fun setUp() {
        testResourceDir = "./build/resources/test/okhttp3/osgi".toPath()
        workspaceDir = testResourceDir / "workspace"
    
        // Ensure we start from scratch.
        fileSystem.deleteRecursively(workspaceDir)
        fileSystem.createDirectories(workspaceDir)
      }
    
      /**
       * Resolve the OSGi metadata of the all okhttp3 modules. If required modules do not have OSGi
       * metadata this will fail with an exception.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-public-libraries.gradle.kts

                if (moduleBaseDir.exists()) {
                    // Make sure artifacts do not pile up locally
                    moduleBaseDir.deleteRecursively()
                }
            }
    
            doLast {
                localRepository.get().file("org/gradle/${baseName.get()}/maven-metadata.xml").asFile.apply {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Sep 19 13:21:47 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/ClassPathTest.java

    import static com.google.common.base.StandardSystemProperty.OS_NAME;
    import static com.google.common.base.StandardSystemProperty.PATH_SEPARATOR;
    import static com.google.common.io.MoreFiles.deleteRecursively;
    import static com.google.common.truth.Truth.assertThat;
    import static java.nio.charset.StandardCharsets.US_ASCII;
    import static java.nio.file.Files.createDirectory;
    import static java.nio.file.Files.createFile;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        this.filesystem = FaultyFileSystem(baseFilesystem)
        this.windows = windows
    
        if (filesystem.exists(cacheDir)) {
          filesystem.deleteRecursively(cacheDir)
        }
        journalFile = cacheDir / DiskLruCache.JOURNAL_FILE
        journalBkpFile = cacheDir / DiskLruCache.JOURNAL_FILE_BACKUP
        createNewCache()
      }
    
      @AfterEach fun tearDown() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
Back to top