Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for DirEntry (0.26 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/tasks/BaseSnapshotInputsBuildOperationResult.java

                }
    
                public String getHash() {
                    return hash;
                }
            }
    
            static class DirEntry extends Entry {
    
                private final List<Entry> children = new ArrayList<>();
    
                DirEntry(String path) {
                    super(path);
                }
    
                public Collection<Entry> getChildren() {
                    return children;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 11:36:42 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. src/embed/embed.go

    )
    
    // A file is a single file in the FS.
    // It implements fs.FileInfo and fs.DirEntry.
    type file struct {
    	// The compiler knows the layout of this struct.
    	// See cmd/compile/internal/staticdata's WriteEmbed.
    	name string
    	data string
    	hash [16]byte // truncated SHA256 hash
    }
    
    var (
    	_ fs.FileInfo = (*file)(nil)
    	_ fs.DirEntry = (*file)(nil)
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. src/testing/fstest/testfs.go

    // The order of the lists need not match.
    func (t *fsTester) checkDirList(dir, desc string, list1, list2 []fs.DirEntry) {
    	old := make(map[string]fs.DirEntry)
    	checkMode := func(entry fs.DirEntry) {
    		if entry.IsDir() != (entry.Type()&fs.ModeDir != 0) {
    			if entry.IsDir() {
    				t.errorf("%s: ReadDir returned %s with IsDir() = true, Type() & ModeDir = 0", dir, entry.Name())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/normalization/ConfigureRuntimeClasspathNormalizationIntegrationTest.groovy

        def "can ignore properties in selected files"() {
            def project = new ProjectWithRuntimeClasspathNormalization(Api.RUNTIME)
            def notIgnoredPropertiesFile = new PropertiesResource(project.root.file('classpath/dirEntry/bar.properties'), [(IGNORE_ME_TOO): 'this should not actually be ignored'])
            project.buildFile << """
                normalization {
                    runtimeClasspath {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modcmd/vendor.go

    func matchMetadata(dir string, info fs.DirEntry) bool {
    	name := info.Name()
    	for _, p := range metaPrefixes {
    		if strings.HasPrefix(name, p) {
    			return true
    		}
    	}
    	return false
    }
    
    // matchPotentialSourceFile reports whether info may be relevant to a build operation.
    func matchPotentialSourceFile(dir string, info fs.DirEntry) bool {
    	if strings.HasSuffix(info.Name(), "_test.go") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/podcgroupns.go

    	uid     types.UID
    	netns   fs.File
    	netnsfd uintptr
    	inode   uint64
    }
    
    func (p *PodNetnsProcFinder) processEntry(proc fs.FS, netnsObserved sets.Set[uint64], filter sets.Set[types.UID], entry fs.DirEntry) (*PodNetnsEntry, error) {
    	if !isProcess(entry) {
    		return nil, nil
    	}
    
    	netnsName := path.Join(entry.Name(), "ns", "net")
    	fi, err := fs.Stat(proc, netnsName)
    	if err != nil {
    		return nil, err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/kuberuntime_gc_test.go

    	podStateProvider.removed["789"] = struct{}{}
    	podStateProvider.removed["654"] = struct{}{}
    
    	ctrl := gomock.NewController(t)
    	defer ctrl.Finish()
    
    	fakeOS.ReadDirFn = func(string) ([]os.DirEntry, error) {
    		var dirEntries []os.DirEntry
    		for _, file := range files {
    			mockDE := containertest.NewMockDirEntry(ctrl)
    			mockDE.EXPECT().Name().Return(file)
    			dirEntries = append(dirEntries, mockDE)
    		}
    		return dirEntries, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. src/cmd/gofmt/gofmt.go

    	// It's only -r that makes use of go/ast's object resolution,
    	// so avoid the unnecessary work if the flag isn't used.
    	if *rewriteRule == "" {
    		parserMode |= parser.SkipObjectResolution
    	}
    }
    
    func isGoFile(f fs.DirEntry) bool {
    	// ignore non-Go files
    	name := f.Name()
    	return !strings.HasPrefix(name, ".") && strings.HasSuffix(name, ".go") && !f.IsDir()
    }
    
    // A sequencer performs concurrent tasks that may write output, but emits that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  9. src/path/filepath/path_test.go

    	})
    }
    
    // Assumes that each node name is unique. Good enough for a test.
    // If clear is true, any incoming error is cleared before return. The errors
    // are always accumulated, though.
    func mark(d fs.DirEntry, err error, errors *[]error, clear bool) error {
    	name := d.Name()
    	walkTree(tree, tree.name, func(path string, n *Node) {
    		if n.name == name {
    			n.mark++
    		}
    	})
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  10. pkg/kubelet/volumemanager/reconciler/reconstruct_common.go

    		volumesDirs[v1.PersistentVolumeBlock] = filepath.Join(podDir, config.DefaultKubeletVolumeDevicesDirName)
    
    		for volumeMode, volumesDir := range volumesDirs {
    			var volumesDirInfo []fs.DirEntry
    			if volumesDirInfo, err = os.ReadDir(volumesDir); err != nil {
    				// Just skip the loop because given volumesDir doesn't exist depending on volumeMode
    				continue
    			}
    			for _, volumeDir := range volumesDirInfo {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top