Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestXLStorageIsDirEmpty (0.24 sec)

  1. cmd/xl-storage_test.go

    	for _, testCase := range testCases {
    		if _, err := getDiskInfo(testCase.diskPath); err != testCase.expectedErr {
    			t.Fatalf("expected: %s, got: %s", testCase.expectedErr, err)
    		}
    	}
    }
    
    func TestXLStorageIsDirEmpty(t *testing.T) {
    	tmp := t.TempDir()
    
    	// Should give false on non-existent directory.
    	dir1 := slashpath.Join(tmp, "non-existent-directory")
    	if isDirEmpty(dir1, true) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
Back to top