Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 189 for walkFn (0.12 sec)

  1. pkg/util/filesystem/defaultfs.go

    // ReadDir via os.ReadDir
    func (fs *DefaultFs) ReadDir(dirname string) ([]os.DirEntry, error) {
    	return os.ReadDir(fs.prefix(dirname))
    }
    
    // Walk via filepath.Walk
    func (fs *DefaultFs) Walk(root string, walkFn filepath.WalkFunc) error {
    	return filepath.Walk(fs.prefix(root), walkFn)
    }
    
    // defaultFile implements File using same-named functions from "os"
    type defaultFile struct {
    	file *os.File
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. src/io/fs/walk.go

    				break
    			}
    			return err
    		}
    	}
    	return nil
    }
    
    // WalkDir walks the file tree rooted at root, calling fn for each file or
    // directory in the tree, including root.
    //
    // All errors that arise visiting files and directories are filtered by fn:
    // see the [fs.WalkDirFunc] documentation for details.
    //
    // The files are walked in lexical order, which makes the output deterministic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 08:50:19 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/TypeMetadataWalker.java

            return new AbstractTypeMetadataWalker.InstanceTypeMetadataWalker(typeMetadataStore, nestedAnnotation);
        }
    
        /**
         * A factory method for a walker that can visit property hierarchy declared by a type.
         *
         * Type walker can detect a nested property cycle and stop walking the path with a cycle, no exception is thrown.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. src/go/ast/walk.go

    		if n.Elt != nil {
    			Walk(v, n.Elt)
    		}
    
    	case *FuncLit:
    		Walk(v, n.Type)
    		Walk(v, n.Body)
    
    	case *CompositeLit:
    		if n.Type != nil {
    			Walk(v, n.Type)
    		}
    		walkList(v, n.Elts)
    
    	case *ParenExpr:
    		Walk(v, n.X)
    
    	case *SelectorExpr:
    		Walk(v, n.X)
    		Walk(v, n.Sel)
    
    	case *IndexExpr:
    		Walk(v, n.X)
    		Walk(v, n.Index)
    
    	case *IndexListExpr:
    		Walk(v, n.X)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/stmt.go

    	call.Fun = walkExpr(call.Fun, &init)
    
    	if len(init) > 0 {
    		init.Append(n)
    		return ir.NewBlockStmt(n.Pos(), init)
    	}
    	return n
    }
    
    // walkIf walks an OIF node.
    func walkIf(n *ir.IfStmt) ir.Node {
    	n.Cond = walkExpr(n.Cond, n.PtrInit())
    	walkStmtList(n.Body)
    	walkStmtList(n.Else)
    	return n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/file-collections/src/testFixtures/groovy/org/gradle/api/internal/file/collections/AbstractDirectoryWalkerTest.groovy

        @Rule
        SetSystemProperties setSystemPropertiesRule
    
        protected abstract List<T> getWalkers()
    
        def "basic directory walking works - walker: #walkerInstance.class.simpleName"() {
            given:
            def rootDir = tmpDir.createDir("root")
            def rootTextFile = rootDir.file("a.txt").createFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  7. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/FileSystemSnapshot.java

         */
        Stream<FileSystemLocationSnapshot> roots();
    
        /**
         * Walks the whole hierarchy represented by this snapshot.
         *
         * The walk is depth first.
         */
        SnapshotVisitResult accept(FileSystemSnapshotHierarchyVisitor visitor);
    
        /**
         * Walks the whole hierarchy represented by this snapshot.
         *
         * The walk is depth first.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DirectoryWalkerTest.groovy

                    generateFilesAndSubDirectories(subDir, fileCount, dirCount, maxDepth, currentDepth + 1, fileIdGenerator)
                }
            }
        }
    
        def "file walker sees a snapshot of file metadata even if files are deleted after walking has started"() {
            given:
            def rootDir = tmpDir.createDir("root")
            long minimumTimestamp = (System.currentTimeMillis() / 1000 * 1000) - 2000
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/dependencyManagement/workingWithDependencies-walkGraph/tests/walking-dependency-graph.sample.conf

    Laura Kassovic <******@****.***> 1701107622 -0800
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 106 bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/TypesTest.groovy

            Object doSomething() { null }
        }
    
        interface Iface {}
    
        class Child extends Base implements Serializable, Iface {
            @Nullable
            Object doSomething() { null }
        }
    
        def "walking type hierarchy happens breadth-first"() {
            def visitor = Mock(Types.TypeVisitor)
            when:
            Types.walkTypeHierarchy(Child, [Object, GroovyObject], visitor)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 06 15:03:49 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top