Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for nextPath (0.16 sec)

  1. platforms/core-execution/build-cache-packaging/src/main/java/org/gradle/caching/internal/packaging/impl/RelativePathParser.java

        }
    
        public String getName() {
            return currentPath.substring(sizeOfCommonPrefix + 1);
        }
    
        public boolean nextPath(String nextPath, boolean directory, Runnable exitDirectoryHandler) {
            currentPath = directory ? nextPath.substring(0, nextPath.length() - 1) : nextPath;
            String lastDirPath = directoryPaths.peekLast();
            sizeOfCommonPrefix = FilePathUtil.sizeOfCommonPrefix(lastDirPath, currentPath, 0, '/');
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache-packaging/src/test/groovy/org/gradle/caching/internal/packaging/impl/RelativePathParserTest.groovy

            boolean outsideOfRoot
    
            when:
            outsideOfRoot = parser.nextPath("tree-some/first/", true, exitHandler)
            then:
            0 * exitHandler.run()
            then:
            parser.name == "first"
            parser.relativePath == "first"
            !parser.root
            !outsideOfRoot
    
            when:
            outsideOfRoot = parser.nextPath("tree-some/first/file.txt", false, exitHandler)
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. cluster/images/etcd/migrate/data_dir.go

    	// corruption under full disk condition.
    	// See https://github.com/kubernetes/kubernetes/issues/98989.
    	err = os.WriteFile(v.nextPath(), []byte(vp.String()), 0666)
    	if err != nil {
    		return fmt.Errorf("failed to write new version file %s: %v", v.nextPath(), err)
    	}
    	return os.Rename(v.nextPath(), v.path)
    }
    
    func exists(path string) (bool, error) {
    	if _, err := os.Stat(path); os.IsNotExist(err) {
    		return false, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 09 19:13:17 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/DfsImpl.java

                String nextPath = refPath + ( path != null ? path.substring(r.getPathConsumed()) : "" );
                if ( log.isDebugEnabled() ) {
                    log.debug(
                        String.format(
                            "Intermediate referral, server %s share %s refPath %s origPath %s nextPath %s",
                            r.getServer(),
                            r.getShare(),
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:07:29 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  5. cmd/import-boss/main.go

    			if err != nil {
    				return nil, err
    			}
    
    			restrictionFiles = append(restrictionFiles, rules)
    		}
    
    		nextPath, removedDir := removeLastDir(path)
    		if nextPath == path || isGoModRoot(path) || removedDir == "src" {
    			break
    		}
    
    		path = nextPath
    	}
    
    	return restrictionFiles, nil
    }
    
    func readFile(path string) (*FileFormat, error) {
    	currentBytes, err := os.ReadFile(path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modindex/build.go

    func (ctxt *Context) makePathsAbsolute(args []string, srcDir string) {
    	nextPath := false
    	for i, arg := range args {
    		if nextPath {
    			if !filepath.IsAbs(arg) {
    				args[i] = filepath.Join(srcDir, arg)
    			}
    			nextPath = false
    		} else if strings.HasPrefix(arg, "-I") || strings.HasPrefix(arg, "-L") {
    			if len(arg) == 2 {
    				nextPath = true
    			} else {
    				if !filepath.IsAbs(arg[2:]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 17:39:23 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache-packaging/src/main/java/org/gradle/caching/internal/packaging/impl/TarBuildCacheEntryPacker.java

            TarArchiveEntry entry;
    
            while ((entry = input.getNextEntry()) != null) {
                boolean isDir = entry.isDirectory();
                boolean outsideOfRoot = parser.nextPath(safeEntryName(entry), isDir, builder::leaveDirectory);
                if (outsideOfRoot) {
                    break;
                }
                entries.incrementAndGet();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 07:31:19 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  8. src/go/build/build.go

    func (ctxt *Context) makePathsAbsolute(args []string, srcDir string) {
    	nextPath := false
    	for i, arg := range args {
    		if nextPath {
    			if !filepath.IsAbs(arg) {
    				args[i] = filepath.Join(srcDir, arg)
    			}
    			nextPath = false
    		} else if strings.HasPrefix(arg, "-I") || strings.HasPrefix(arg, "-L") {
    			if len(arg) == 2 {
    				nextPath = true
    			} else {
    				if !filepath.IsAbs(arg[2:]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  9. src/runtime/pprof/map.go

    	var last *profMapEntry
    Search:
    	for e := m.hash[h]; e != nil; last, e = e, e.nextHash {
    		if len(e.stk) != len(stk) || e.tag != tag {
    			continue
    		}
    		for j := range stk {
    			if e.stk[j] != uintptr(stk[j]) {
    				continue Search
    			}
    		}
    		// Move to front.
    		if last != nil {
    			last.nextHash = e.nextHash
    			e.nextHash = m.hash[h]
    			m.hash[h] = e
    		}
    		return e
    	}
    
    	// Add new entry.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 05 21:51:02 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/configuration/project/LifecycleProjectEvaluator.java

                };
    
                do {
                    try {
                        nextBatch = project.stepEvaluationListener(nextBatch, fireAction);
                    } catch (Exception e) {
                        addConfigurationFailure(project, state, e, context);
                        return;
                    }
                } while (nextBatch != null);
    
                context.setResult(NotifyProjectAfterEvaluatedBuildOperationType.RESULT);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top