Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AppendFile (0.15 sec)

  1. cmd/xl-storage_test.go

    	// Create test files for further reading.
    	for i, appendFile := range appendFiles {
    		err = xlStorage.AppendFile(context.Background(), volume, appendFile.fileName, []byte("hello, world"))
    		if err != appendFile.expectedErr {
    			t.Fatalf("Creating file failed: %d %#v, expected: %s, got: %s", i+1, appendFile, appendFile.expectedErr, err)
    		}
    	}
    
    	{
    		buf := make([]byte, 5)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	if err != nil {
    		return err
    	}
    
    	return s.writeAll(ctx, volume, path, b, true, volumeDir)
    }
    
    // AppendFile - append a byte array at path, if file doesn't exist at
    // path this call explicitly creates it.
    func (s *xlStorage) AppendFile(ctx context.Context, volume string, path string, buf []byte) (err error) {
    	volumeDir, err := s.getVolDir(volume)
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top