- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for isDirEmpty (0.18 sec)
-
cmd/xl-storage_test.go
dir1 := slashpath.Join(tmp, "non-existent-directory") if isDirEmpty(dir1, true) { t.Error("expected false for non-existent directory, got true") } // Should give false for not-a-directory. dir2 := slashpath.Join(tmp, "file") err := os.WriteFile(dir2, []byte("hello"), 0o777) if err != nil { t.Fatal(err) } if isDirEmpty(dir2, true) { t.Error("expected false for a file, got true") }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 66K bytes - Viewed (0)