Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 52 of 52 for cleanup (0.19 sec)

  1. cmd/object-api-utils_test.go

    			}
    		})
    	}
    }
    
    func Test_pathNeedsClean(t *testing.T) {
    	type pathTest struct {
    		path, result string
    	}
    
    	cleantests := []pathTest{
    		// Already clean
    		{"", "."},
    		{"abc", "abc"},
    		{"abc/def", "abc/def"},
    		{"a/b/c", "a/b/c"},
    		{".", "."},
    		{"..", ".."},
    		{"../..", "../.."},
    		{"../../abc", "../../abc"},
    		{"/abc", "/abc"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  2. cmd/erasure-healing_test.go

    		t.Fatal(err)
    	}
    
    	for _, drive := range fsDirs {
    		dir := path.Join(drive, bucket, object, uuid.String())
    		_, err := os.ReadFile(pathJoin(dir, "part.1"))
    		if err == nil {
    			t.Fatal("expected data dit to be cleaned up")
    		}
    	}
    
    	// Remove the bucket - to simulate the case where bucket was
    	// created when the disk was down.
    	err = os.RemoveAll(path.Join(fsDirs[0], bucket))
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 47.6K bytes
    - Viewed (0)
Back to top