- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for nextPath (0.19 sec)
-
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) -
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) -
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)