Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. 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);
    
    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)
  3. 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.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  4. tensorflow/c/env.cc

    }
    
    void TF_DeleteRecursively(const char* dirname, int64_t* undeleted_file_count,
                              int64_t* undeleted_dir_count, TF_Status* status) {
      ::int64_t f, d;
    
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Set_TF_Status_from_Status(
          status, ::tensorflow::Env::Default()->DeleteRecursively(dirname, &f, &d));
      *undeleted_file_count = f;
      *undeleted_dir_count = d;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  5. 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 {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 24 13:19:43 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      if (undeleted_files == nullptr || undeleted_dirs == nullptr)
        return errors::FailedPrecondition(
            "DeleteRecursively must not be called with `undeleted_files` or "
            "`undeleted_dirs` set to NULL");
    
      if (ops_->delete_recursively == nullptr)
        return FileSystem::DeleteRecursively(dirname, token, undeleted_files,
                                             undeleted_dirs);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      Status status = env_->CreateDir(dirpath);
      if (!status.ok()) GTEST_SKIP() << "CreateDir() not supported: " << status;
    
      int64_t undeleted_files = 0;
      int64_t undeleted_dirs = 0;
      status = env_->DeleteRecursively(dirpath, &undeleted_files, &undeleted_dirs);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
      EXPECT_EQ(undeleted_files, 0);
      EXPECT_EQ(undeleted_dirs, 0);
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  8. build-logic/build-init-samples/src/main/kotlin/gradlebuild/samples/SamplesGenerator.kt

            // clear the target directory to remove renamed files and reset the README file
            target.asFile.deleteRecursively()
    
            val groovyDslSettings = InitSettings(projectName, false, descriptor.componentType.defaultProjectNames, modularization, BuildInitDsl.GROOVY, packageName, testFramework, target.dir("groovy"))
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Feb 06 17:51:21 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/modular_filesystem.h

                              std::vector<std::string>* results) override;
      Status DeleteFile(const std::string& fname, TransactionToken* token) override;
      Status DeleteRecursively(const std::string& dirname, TransactionToken* token,
                               int64_t* undeleted_files,
                               int64_t* undeleted_dirs) override;
      Status DeleteDir(const std::string& dirname,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  10. 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.file.Files.createDirectory;
    import static java.nio.file.Files.createFile;
    import static java.nio.file.Files.createSymbolicLink;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Jul 10 17:06:37 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top