Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for RenameFile (0.22 sec)

  1. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

        GTEST_SKIP() << "NewWritableFile() not supported: " << status;
    
      const std::string new_filepath = GetURIForPath("a_new_file");
      status = env_->RenameFile(filepath, new_filepath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
      if (!status.ok()) GTEST_SKIP() << "RenameFile() not supported: " << status;
    
      status = env_->FileExists(filepath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::NOT_FOUND);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      *file_size = ops_->get_file_size(filesystem_.get(), translated_name.c_str(),
                                       plugin_status.get());
      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::RenameFile(const std::string& src,
                                         const std::string& target,
                                         TransactionToken* token) {
      if (ops_->rename_file == nullptr) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/modular_filesystem.h

                         TransactionToken* token) override;
      Status GetFileSize(const std::string& fname, TransactionToken* token,
                         uint64* file_size) override;
      Status RenameFile(const std::string& src, const std::string& target,
                        TransactionToken* token) override;
      Status CopyFile(const std::string& src, const std::string& target,
                      TransactionToken* token) override;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

                          TF_Status* status) {
      if (rmdir(path) != 0)
        TF_SetStatusFromIOError(status, errno, path);
      else
        TF_SetStatus(status, TF_OK, "");
    }
    
    static void RenameFile(const TF_Filesystem* filesystem, const char* src,
                           const char* dst, TF_Status* status) {
      // If target is a directory return TF_FAILED_PRECONDITION.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.h

    void DeleteDir(const TF_Filesystem* filesystem, const char* path,
                   TF_Status* status);
    void CopyFile(const TF_Filesystem* filesystem, const char* src, const char* dst,
                  TF_Status* status);
    void RenameFile(const TF_Filesystem* filesystem, const char* src,
                    const char* dst, TF_Status* status);
    }  // namespace tf_gcs_filesystem
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:37:41 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      EXPECT_FALSE(stat.is_directory);
    }
    
    TEST_F(GCSFilesystemTest, RenameFile) {
      tf_gcs_filesystem::Init(filesystem_, status_);
      ASSERT_TF_OK(status_);
      const std::string src = GetURIForPath("RenameFileSrc");
      const std::string dst = GetURIForPath("RenameFileDst");
      WriteString(src, "test");
      ASSERT_TF_OK(status_);
    
      tf_gcs_filesystem::RenameFile(filesystem_, src.c_str(), dst.c_str(), status_);
      EXPECT_TF_OK(status_);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      TF_VLog(3, "RenameObject: finished %s to %s", src.c_str(), dst.c_str());
    
      ClearFileCaches(gcs_file, dst);
      DeleteFile(filesystem, src.c_str(), status);
    }
    
    void RenameFile(const TF_Filesystem* filesystem, const char* src,
                    const char* dst, TF_Status* status) {
      if (!IsDirectory(filesystem, src, status)) {
        if (TF_GetCode(status) == TF_FAILED_PRECONDITION) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
Back to top