Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RenameFile (0.06 sec)

  1. cmd/xl-storage_test.go

    	if err != errVolumeNotFound {
    		t.Fatalf("expected: \"Invalid argument error\", got: \"%s\"", err)
    	}
    }
    
    // TestXLStorage xlStorage.RenameFile()
    func TestXLStorageRenameFile(t *testing.T) {
    	// create xlStorage test setup
    	xlStorage, _, err := newXLStorageTestSetup(t)
    	if err != nil {
    		t.Fatalf("Unable to create xlStorage test setup, %s", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	parentDir := pathutil.Dir(srcFilePath)
    	s.deleteFile(srcVolumeDir, parentDir, false, false)
    
    	return nil
    }
    
    // RenameFile - rename source path to destination path atomically.
    func (s *xlStorage) RenameFile(ctx context.Context, srcVolume, srcPath, dstVolume, dstPath string) (err error) {
    	srcVolumeDir, err := s.getVolDir(srcVolume)
    	if err != nil {
    		return err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top