Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 88 for walkDir (0.57 sec)

  1. src/compress/gzip/issue14937_test.go

    		t.Skip("skipping; no GOROOT available")
    	}
    
    	goroot, err := filepath.EvalSymlinks(runtime.GOROOT())
    	if err != nil {
    		t.Fatal("error evaluating GOROOT: ", err)
    	}
    	var files []string
    	err = filepath.WalkDir(goroot, func(path string, info fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		}
    		if !info.IsDir() && strings.HasSuffix(path, ".gz") {
    			files = append(files, path)
    		}
    		return nil
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 16:37:53 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/ReproducibleDirectoryWalker.java

        private final FileSystem fileSystem;
    
        public ReproducibleDirectoryWalker(FileSystem fileSystem) {
            this.fileSystem = fileSystem;
        }
    
        @Override
        public void walkDir(Path rootDir, RelativePath rootPath, FileVisitor visitor, Spec<? super FileTreeElement> spec, AtomicBoolean stopFlag, boolean postfix) {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. src/cmd/gofmt/long_test.go

    		}
    		return // ignore files under -root
    	}
    
    	// otherwise, test all Go files under *root
    	goroot := *root
    	if goroot == "" {
    		goroot = testenv.GOROOT(t)
    	}
    	filepath.WalkDir(goroot, handleFile)
    }
    
    func TestAll(t *testing.T) {
    	if testing.Short() {
    		return
    	}
    
    	if *ngo < 1 {
    		*ngo = 1 // make sure test is run
    	}
    	if *verbose {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 20:27:28 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/version/version.go

    		}
    		if info.IsDir() {
    			scanDir(arg)
    		} else {
    			scanFile(arg, info, true)
    		}
    	}
    }
    
    // scanDir scans a directory for binary to run scanFile on.
    func scanDir(dir string) {
    	filepath.WalkDir(dir, func(path string, d fs.DirEntry, err error) error {
    		if d.Type().IsRegular() || d.Type()&fs.ModeSymlink != 0 {
    			info, err := d.Info()
    			if err != nil {
    				if *versionV {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 19:27:00 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/addmod.go

    		}
    		a.Comment = []byte(fmt.Sprintf("module %s\n\n", title))
    		a.Files = []txtar.File{
    			{Name: ".mod", Data: mod},
    			{Name: ".info", Data: info},
    		}
    		dir = filepath.Clean(dir)
    		err = filepath.WalkDir(dir, func(path string, info fs.DirEntry, err error) error {
    			if !info.Type().IsRegular() {
    				return nil
    			}
    			name := info.Name()
    			if name == "go.mod" || strings.HasSuffix(name, ".go") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 30 19:41:54 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. cmd/naughty-disk_test.go

    	if err := d.calcError(); err != nil {
    		return err
    	}
    	return d.disk.DeleteVol(ctx, volume, forceDelete)
    }
    
    func (d *naughtyDisk) WalkDir(ctx context.Context, opts WalkDirOptions, wr io.Writer) error {
    	if err := d.calcError(); err != nil {
    		return err
    	}
    	return d.disk.WalkDir(ctx, opts, wr)
    }
    
    func (d *naughtyDisk) ListDir(ctx context.Context, origvolume, volume, dirPath string, count int) (entries []string, err error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. operator/pkg/helm/renderer.go

    	}
    	return renderChart(h.namespace, values, h.chart, filter, h.version)
    }
    
    func GetFilesRecursive(f fs.FS, root string) ([]string, error) {
    	res := []string{}
    	err := fs.WalkDir(f, root, func(path string, d fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		}
    		if d.IsDir() {
    			return nil
    		}
    		res = append(res, path)
    		return nil
    	})
    	return res, err
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 13 01:59:17 UTC 2022
    - 5K bytes
    - Viewed (0)
  8. src/net/http/http_test.go

    func TestNoUnicodeStrings(t *testing.T) {
    	if !testenv.HasSrc() {
    		t.Skip("source code not available")
    	}
    
    	re := regexp.MustCompile(`(strings|bytes).([A-Za-z]+)`)
    	if err := fs.WalkDir(os.DirFS("."), ".", func(path string, d fs.DirEntry, err error) error {
    		if err != nil {
    			t.Fatal(err)
    		}
    
    		if path == "internal/ascii" {
    			return fs.SkipDir
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 18:18:19 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  9. src/os/dir.go

    // to ErrInvalid is returned on symlink.
    //
    // Copying stops at and returns the first error encountered.
    func CopyFS(dir string, fsys fs.FS) error {
    	return fs.WalkDir(fsys, ".", func(path string, d fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		}
    
    		fpath, err := filepathlite.Localize(path)
    		if err != nil {
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. src/cmd/distpack/archive.go

    // The archive can be amended afterward using methods like Add and Filter.
    func NewArchive(dir string) (*Archive, error) {
    	a := new(Archive)
    	err := fs.WalkDir(os.DirFS(dir), ".", 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: Fri Aug 11 17:37:52 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top