Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestXLStorageIsDirEmpty (0.61 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) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 66K bytes
    - Viewed (0)
Back to top