Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for DstFilePath (0.22 sec)

  1. cmd/os-reliable.go

    // the operation.
    func renameAll(srcFilePath, dstFilePath, baseDir string) (err error) {
    	if srcFilePath == "" || dstFilePath == "" {
    		return errInvalidArgument
    	}
    
    	if err = checkPathLength(srcFilePath); err != nil {
    		return err
    	}
    	if err = checkPathLength(dstFilePath); err != nil {
    		return err
    	}
    
    	if err = reliableRename(srcFilePath, dstFilePath, baseDir); err != nil {
    		switch {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Apr 22 17:49:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		return res, err
    	}
    
    	if err = checkPathLength(dstFilePath); err != nil {
    		return res, err
    	}
    
    	s.RLock()
    	formatLegacy := s.formatLegacy
    	s.RUnlock()
    
    	dstBuf, err := xioutil.ReadFile(dstFilePath)
    	if err != nil {
    		// handle situations when dstFilePath is 'file'
    		// for example such as someone is trying to
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  3. cmd/storage-rest-client.go

    	_, err = storageRenamePartRPC.Call(ctx, client.gridConn, &RenamePartHandlerParams{
    		DiskID:      *client.diskID.Load(),
    		SrcVolume:   srcVolume,
    		SrcFilePath: srcPath,
    		DstVolume:   dstVolume,
    		DstFilePath: dstPath,
    		Meta:        meta,
    	})
    	return toStorageErr(err)
    }
    
    // ReadParts - reads various part.N.meta paths from a drive remotely and returns object part info for each of those part.N.meta if found
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  4. cmd/storage-datatypes_gen.go

    		case "dv":
    			z.DstVolume, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "DstVolume")
    				return
    			}
    		case "dp":
    			z.DstFilePath, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "DstFilePath")
    				return
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 150.2K bytes
    - Viewed (0)
  5. cmd/storage-datatypes.go

    	SrcFilePath string `msg:"sp"`
    	DstVolume   string `msg:"dv"`
    	DstFilePath string `msg:"dp"`
    }
    
    // RenamePartHandlerParams are parameters for RenamePartHandler.
    type RenamePartHandlerParams struct {
    	DiskID      string `msg:"id"`
    	SrcVolume   string `msg:"sv"`
    	SrcFilePath string `msg:"sp"`
    	DstVolume   string `msg:"dv"`
    	DstFilePath string `msg:"dp"`
    	Meta        []byte `msg:"m"`
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  6. cmd/storage-rest-server.go

    	if !s.checkID(p.DiskID) {
    		return grid.NewNPErr(errDiskNotFound)
    	}
    	return grid.NewNPErr(s.getStorage().RenameFile(context.Background(), p.SrcVolume, p.SrcFilePath, p.DstVolume, p.DstFilePath))
    }
    
    // RenamePartHandler - rename a multipart part from source to destination
    func (s *storageRESTServer) RenamePartHandler(p *RenamePartHandlerParams) (grid.NoPayload, *grid.RemoteErr) {
    	if !s.checkID(p.DiskID) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
Back to top