Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 712 for removeable (0.16 sec)

  1. pkg/util/removeall/removeall_test.go

    				"file2",
    				"err/",
    				"err/file3",
    			},
    			true,
    		},
    	}
    
    	for _, test := range tests {
    		tmpDir, err := utiltesting.MkTmpdir("removeall-" + test.name + "-")
    		if err != nil {
    			t.Fatalf("Can't make a tmp dir: %v", err)
    		}
    		defer os.RemoveAll(tmpDir)
    		// Create the directory structure
    		for _, item := range test.items {
    			if strings.HasSuffix(item, "/") {
    				item = strings.TrimRight(item, "/")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 20:35:13 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingSetTest.groovy

            1 * listener.onAccess('missing')
            then:
            1 * listener.onRemove('missing')
            then:
            0 * listener._
        }
    
        def "removeAll of existing elements is tracked"() {
            when:
            def result = set.removeAll(['existing', 'other'])
    
            then:
            result
            1 * listener.onAccess('existing')
            then:
            1 * listener.onRemove('existing')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/os/path.go

    			return nil
    		}
    		return err
    	}
    	return nil
    }
    
    // RemoveAll removes path and any children it contains.
    // It removes everything it can but returns the first error
    // it encounters. If the path does not exist, RemoveAll
    // returns nil (no error).
    // If there is an error, it will be of type [*PathError].
    func RemoveAll(path string) error {
    	return removeAll(path)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. src/os/path_windows_test.go

    	for i := 0; i < 100; i++ {
    		path += `\another-path-component`
    	}
    	if err := os.MkdirAll(path, 0777); err != nil {
    		t.Fatalf("MkdirAll(%q) failed; %v", path, err)
    	}
    	if err := os.RemoveAll(tmpDir); err != nil {
    		t.Fatalf("RemoveAll(%q) failed; %v", tmpDir, err)
    	}
    }
    
    func TestMkdirAllExtendedLength(t *testing.T) {
    	t.Parallel()
    	tmpDir := t.TempDir()
    
    	const prefix = `\\?\`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:37:32 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. pkg/kubelet/container/os.go

    }
    
    // Remove will call os.Remove to remove the path.
    func (RealOS) Remove(path string) error {
    	return os.Remove(path)
    }
    
    // RemoveAll will call os.RemoveAll to remove the path and its children.
    func (RealOS) RemoveAll(path string) error {
    	return os.RemoveAll(path)
    }
    
    // Create will call os.Create to create and return a file
    // at path.
    func (RealOS) Create(path string) (*os.File, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  6. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/AnonymousListenerBroadcast.java

            super(type);
            this.forwardingDispatch = forwardingDispatch;
            add(forwardingDispatch);
        }
    
        @Override
        public void removeAll() {
            super.removeAll();
            add(forwardingDispatch);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. cmd/os-readdir_test.go

    			if err != nil {
    				os.RemoveAll(dir)
    				t.Fatalf("Unable to create a file, %s", err)
    			}
    		}
    		entries, err := readDirN(dir, testCase.n)
    		if err != nil {
    			os.RemoveAll(dir)
    			t.Fatalf("Unable to read entries, %s", err)
    		}
    		if len(entries) != testCase.expectedNum {
    			os.RemoveAll(dir)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  8. src/cmd/go/internal/robustio/robustio_other.go

    )
    
    func rename(oldpath, newpath string) error {
    	return os.Rename(oldpath, newpath)
    }
    
    func readFile(filename string) ([]byte, error) {
    	return os.ReadFile(filename)
    }
    
    func removeAll(path string) error {
    	return os.RemoveAll(path)
    }
    
    func isEphemeralError(err error) bool {
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 516 bytes
    - Viewed (0)
  9. src/os/path_test.go

    	t.Parallel()
    
    	tmpDir := TempDir()
    	path := tmpDir + "/_TestMkdirAll_/dir/./dir2"
    	err := MkdirAll(path, 0777)
    	if err != nil {
    		t.Fatalf("MkdirAll %q: %s", path, err)
    	}
    	defer RemoveAll(tmpDir + "/_TestMkdirAll_")
    
    	// Already exists, should succeed.
    	err = MkdirAll(path, 0777)
    	if err != nil {
    		t.Fatalf("MkdirAll %q (second time): %s", path, err)
    	}
    
    	// Make file.
    	fpath := path + "/file"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:45:37 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. src/expvar/expvar_test.go

    	"runtime"
    	"strconv"
    	"sync"
    	"sync/atomic"
    	"testing"
    )
    
    // RemoveAll removes all exported variables.
    // This is for tests only.
    func RemoveAll() {
    	vars.keysMu.Lock()
    	defer vars.keysMu.Unlock()
    	for _, k := range vars.keys {
    		vars.m.Delete(k)
    	}
    	vars.keys = nil
    }
    
    func TestNil(t *testing.T) {
    	RemoveAll()
    	val := Get("missing")
    	if val != nil {
    		t.Errorf("got %v, want nil", val)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top