Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 41 for walkDir (0.29 sec)

  1. src/cmd/internal/moddeps/moddeps_test.go

    		// Add a trailing separator to force that to happen.
    		root := testenv.GOROOT(t)
    		if !os.IsPathSeparator(root[len(root)-1]) {
    			root += string(filepath.Separator)
    		}
    		goroot.err = filepath.WalkDir(root, func(path string, info fs.DirEntry, err error) error {
    			if err != nil {
    				return err
    			}
    			if info.IsDir() && path != root && (info.Name() == "vendor" || info.Name() == "testdata") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/archive/tar/writer.go

    // It walks the directory tree starting at the root of the filesystem
    // adding each file to the tar archive while maintaining the directory structure.
    func (tw *Writer) AddFS(fsys fs.FS) error {
    	return fs.WalkDir(fsys, ".", func(name string, d fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		}
    		if d.IsDir() {
    			return nil
    		}
    		info, err := d.Info()
    		if err != nil {
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. src/cmd/go/go_test.go

    	if !*testWork {
    		removeAll(testTmpDir) // os.Exit won't run defer
    	}
    
    	if !*testWork {
    		// There shouldn't be anything left in topTmpdir.
    		var extraFiles, extraDirs []string
    		err := filepath.WalkDir(topTmpdir, func(path string, d fs.DirEntry, err error) error {
    			if err != nil {
    				return err
    			}
    			if path == topTmpdir {
    				return nil
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  4. src/cmd/go/internal/script/cmds.go

    // needed in order to remove their contents.
    func removeAll(dir string) error {
    	// module cache has 0444 directories;
    	// make them writable in order to remove content.
    	filepath.WalkDir(dir, func(path string, info fs.DirEntry, err error) error {
    		// chmod not only directories, but also things that we couldn't even stat
    		// due to permission errors: they may also be unreadable directories.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    // they are all added to the returned slice.
    func loadObjects(dir string) []*unstructured.Unstructured {
    	result := []*unstructured.Unstructured{}
    	err := filepath.WalkDir(dir, func(path string, d fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		} else if d.IsDir() {
    			return nil
    		} else if filepath.Ext(d.Name()) != ".yaml" {
    			return nil
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  6. cmd/kubelet/app/server.go

    	if err != nil {
    		return fmt.Errorf("failed to marshal base config: %w", err)
    	}
    	// Walk through the drop-in directory and update the configuration for each file
    	if err := filepath.WalkDir(kubeletDropInConfigDir, func(path string, info fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		}
    		if !info.IsDir() && filepath.Ext(info.Name()) == dropinFileExtension {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  7. src/cmd/dist/build.go

    			bdst.WriteByte(0)
    		}
    	}
    	writefile(bdst.String(), dst, 0)
    }
    
    func clean() {
    	generated := []byte(generatedHeader)
    
    	// Remove generated source files.
    	filepath.WalkDir(pathf("%s/src", goroot), func(path string, d fs.DirEntry, err error) error {
    		switch {
    		case err != nil:
    			// ignore
    		case d.IsDir() && (d.Name() == "vendor" || d.Name() == "testdata"):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  8. src/cmd/dist/test.go

    		mode os.FileMode
    	}
    	var dirs []pathMode // in lexical order
    
    	undo = func() {
    		for i := range dirs {
    			os.Chmod(dirs[i].path, dirs[i].mode) // best effort
    		}
    	}
    
    	filepath.WalkDir(dir, func(path string, d fs.DirEntry, err error) error {
    		if suffix := strings.TrimPrefix(path, dir+string(filepath.Separator)); suffix != "" {
    			if suffix == ".git" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  9. src/cmd/internal/testdir/testdir_test.go

    	if err := os.MkdirAll(dstRoot, 0777); err != nil {
    		return err
    	}
    
    	srcRoot, err := filepath.Abs(srcRoot)
    	if err != nil {
    		return err
    	}
    
    	return filepath.WalkDir(srcRoot, func(srcPath string, d fs.DirEntry, err error) error {
    		if err != nil || srcPath == srcRoot {
    			return err
    		}
    
    		suffix := strings.TrimPrefix(srcPath, srcRoot)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/tasks/CachingTaskDependencyResolveContext.java

        private final Deque<Object> queue = new ArrayDeque<Object>();
        private final CachingDirectedGraphWalker<Object, T> walker;
        private Task task;
    
        public CachingTaskDependencyResolveContext(Collection<? extends WorkDependencyResolver<T>> workResolvers) {
            this.walker = new CachingDirectedGraphWalker<>(new TaskGraphImpl(workResolvers));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:48:26 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top