Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for listDirs (0.2 sec)

  1. cmd/xl-storage.go

    		case isSysErrIO(err):
    			return errFaultyDisk
    		default:
    			return err
    		}
    	}
    	return nil
    }
    
    // ListDir - return all the entries at the given directory path.
    // If an entry is a directory it will be returned with a trailing SlashSeparator.
    func (s *xlStorage) ListDir(ctx context.Context, origvolume, volume, dirPath string, count int) (entries []string, err error) {
    	if contextCanceled(ctx) {
    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)
  2. cmd/xl-storage_test.go

    		t.Errorf("Expected to fail with \"%s\", but instead failed with \"%s\"", errDiskNotFound, err)
    	}
    }
    
    // TestXLStorageListDir -  TestXLStorages validate the directory listing functionality provided by xlStorage.ListDir .
    func TestXLStorageListDir(t *testing.T) {
    	// create xlStorage test setup
    	xlStorage, _, err := newXLStorageTestSetup(t)
    	if err != nil {
    		t.Fatalf("Unable to create xlStorage test setup, %s", err)
    	}
    
    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)
Back to top