Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/os/removeall_noat.go

    import (
    	"io"
    	"runtime"
    	"syscall"
    )
    
    func removeAll(path string) error {
    	if path == "" {
    		// fail silently to retain compatibility with previous behavior
    		// of RemoveAll. See issue 28830.
    		return nil
    	}
    
    	// The rmdir system call permits removing "." on Plan 9,
    	// so we don't permit it to remain consistent with the
    	// "at" implementation of RemoveAll.
    	if endsWithDot(path) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 3.1K 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. 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)
  8. 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)
  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. cmd/os-reliable.go

    			// here.
    			return errFileAccessDenied
    		}
    	}
    	return err
    }
    
    // Reliably retries os.RemoveAll if for some reason os.RemoveAll returns
    // syscall.ENOTEMPTY (children has files).
    func reliableRemoveAll(dirPath string) (err error) {
    	i := 0
    	for {
    		// Removes all the directories and files.
    		if err = RemoveAll(dirPath); err != nil {
    			// Retry only for the first retryable error.
    			if isSysErrNotEmpty(err) && i == 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 22 17:49:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top