- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for RemoveDirsOneFilesystem (0.46 sec)
-
pkg/util/removeall/removeall.go
return RemoveAllOneFilesystemCommon(mounter, path, os.Remove) } // RemoveDirsOneFilesystem removes the path and any empty subdirectories it // contains, using the syscall.Rmdir function. Unlike RemoveAllOneFilesystem, // RemoveDirsOneFilesystem will remove only directories and returns an error if // it encounters any files in the directory tree. It makes sure it does not
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 15 16:41:02 UTC 2021 - 3.8K bytes - Viewed (0) -
pkg/util/removeall/removeall_test.go
f, err := os.Create(filepath.Join(tmpDir, item)) if err != nil { t.Fatalf("error creating %s: %v", item, err) } f.Close() } } mounter := &fakeMounter{} err = RemoveDirsOneFilesystem(mounter, tmpDir) if err == nil && test.expectError { t.Errorf("test %q failed: expected error and got none", test.name) } if err != nil && !test.expectError {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 15 20:35:13 UTC 2024 - 5.2K bytes - Viewed (0)