Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 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 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  2. cmd/naughty-disk_test.go

    	}
    	return d.disk.RenameData(ctx, srcVolume, srcPath, fi, dstVolume, dstPath, opts)
    }
    
    func (d *naughtyDisk) RenameFile(ctx context.Context, srcVolume, srcPath, dstVolume, dstPath string) error {
    	if err := d.calcError(); err != nil {
    		return err
    	}
    	return d.disk.RenameFile(ctx, srcVolume, srcPath, dstVolume, dstPath)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. cmd/storage-rest-common.go

    	storageRESTMethodReadFileStream = "/readfilestream"
    	storageRESTMethodListDir        = "/listdir"
    	storageRESTMethodDeleteVersions = "/deleteverions"
    	storageRESTMethodRenameFile     = "/renamefile"
    	storageRESTMethodVerifyFile     = "/verifyfile"
    	storageRESTMethodStatInfoFile   = "/statfile"
    	storageRESTMethodReadMultiple   = "/readmultiple"
    	storageRESTMethodCleanAbandoned = "/cleanabandoned"
    )
    
    const (
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 12 21:00:20 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  4. cmd/storage-interface.go

    	CreateFile(ctx context.Context, origvolume, olume, path string, size int64, reader io.Reader) error
    	ReadFileStream(ctx context.Context, volume, path string, offset, length int64) (io.ReadCloser, error)
    	RenameFile(ctx context.Context, srcVolume, srcPath, dstVolume, dstPath string) error
    	CheckParts(ctx context.Context, volume string, path string, fi FileInfo) error
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 4.9K 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 23 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/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)
  7. 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)
  8. 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 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  9. cmd/storage-rest_test.go

    		{"foo", "yourobject", "bar", "myobject", false},
    		// overwrite.
    		{"foo", "otherobject", "bar", "myobject", false},
    	}
    
    	for i, testCase := range testCases {
    		err := storage.RenameFile(context.Background(), testCase.volumeName, testCase.objectName, testCase.destVolumeName, testCase.destObjectName)
    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  10. cmd/erasure-multipart.go

    	// Rename file on all underlying storage disks.
    	for index := range disks {
    		index := index
    		g.Go(func() error {
    			if disks[index] == nil {
    				return errDiskNotFound
    			}
    			return disks[index].RenameFile(ctx, srcBucket, srcEntry, dstBucket, dstEntry)
    		}, index)
    	}
    
    	// Wait for all renames to finish.
    	errs := g.Wait()
    
    	// Do not need to undo partial successful operation since those will be cleaned up
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
Back to top