Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for parentDir (0.35 sec)

  1. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultFileSystemAccessTest.groovy

            given:
            def parentDir = temporaryFolder.createDir("parent")
            def childDir = parentDir.createDir("child")
            parentDir.createDir("sibling")
            childDir.file("file.txt").createFile()
    
            allowFileSystemAccess(true)
            def childSnapshot = read(childDir)
    
            when:
            def parentSnapshot = read(parentDir)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 10K bytes
    - Viewed (0)
  2. subprojects/composite-builds/src/test/groovy/org/gradle/composite/internal/DefaultIncludedBuildRegistryTest.groovy

            def rootBuild = rootBuild(rootDir)
            registry.attachRootBuild(rootBuild)
    
            def parentDir = rootDir.file("parent").createDir()
            parentDir.file("buildSrc/build.gradle").createFile()
    
            def parentDefinition = build(parentDir, "parent")
            def parent = expectIncludedBuildAdded("parent", parentDefinition)
    
            registry.addIncludedBuild(parentDefinition)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 14:36:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/cache/internal/WrapperDistributionCleanupAction.java

                    }
                }
            }
            for (File parentDir : parentsOfDeletedDistributions) {
                if (listFiles(parentDir).isEmpty()) {
                    parentDir.delete();
                }
            }
        }
    
        private Multimap<GradleVersion, File> determineChecksumDirsByVersion() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. pkg/kubelet/userns/userns_manager.go

    	// fstore guarantees an atomic write, we need durability too.
    	parentDir, err := os.Open(dir)
    	if err != nil {
    		return err
    	}
    
    	if err = parentDir.Sync(); err != nil {
    		// Ignore return here, there is already an error reported.
    		parentDir.Close()
    		return err
    	}
    
    	return parentDir.Close()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractSmokeTest.groovy

        }
    
        TestFile file(String filename) {
            def file = new TestFile(testProjectDir, filename)
            def parentDir = file.getParentFile()
            assert parentDir.isDirectory() || parentDir.mkdirs()
    
            file
        }
    
        SmokeTestGradleRunner runner(String... tasks) {
            def gradleRunner = GradleRunner.create()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 08:14:32 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. pkg/volume/csi/csi_mounter.go

    	}
    
    	// create target_dir before call to NodePublish
    	parentDir := filepath.Dir(dir)
    	if err := os.MkdirAll(parentDir, 0750); err != nil {
    		return errors.New(log("mounter.SetUpAt failed to create dir %#v:  %v", parentDir, err))
    	}
    	klog.V(4).Info(log("created target path successfully [%s]", parentDir))
    
    	nodePublishSecrets = map[string]string{}
    	if secretRef != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (1)
  7. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/config_flags.go

    var overlyCautiousIllegalFileCharacters = regexp.MustCompile(`[^(\w/.)]`)
    
    // computeDiscoverCacheDir takes the parentDir and the host and comes up with a "usually non-colliding" name.
    func computeDiscoverCacheDir(parentDir, host string) string {
    	// strip the optional scheme from host if its there:
    	schemelessHost := strings.Replace(strings.Replace(host, "https://", "", 1), "http://", "", 1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 11 15:04:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modfetch/fetch.go

    	// safe to do because the lock file ensures that their writers are no longer
    	// active.
    	parentDir := filepath.Dir(dir)
    	tmpPrefix := filepath.Base(dir) + ".tmp-"
    	if old, err := filepath.Glob(filepath.Join(str.QuoteGlob(parentDir), str.QuoteGlob(tmpPrefix)+"*")); err == nil {
    		for _, path := range old {
    			RemoveAll(path) // best effort
    		}
    	}
    	if dirExists {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. src/os/exec/exec_test.go

    	if dir == "." {
    		t.Skip("skipping; running test at root somehow")
    	}
    	parentDir := filepath.Dir(dir) // "/tmp/go-buildNNNN/os/exec"
    	dirBase := filepath.Base(dir)  // "_test"
    	if dirBase == "." {
    		t.Skipf("skipping; unexpected shallow dir of %q", dir)
    	}
    
    	cmd.Path = filepath.Join(dirBase, base)
    	cmd.Dir = parentDir
    
    	out, err := cmd.Output()
    	if err != nil {
    		t.Errorf("echo: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/build-operations/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationRunnerTest.groovy

                assert operation.id != null
                parent1Id = operation.id
                assert operation.parentId == null
            }
            1 * listener.start({ it.displayName == "<parent-2>" }, _) >> { BuildOperationDescriptor descriptor, BuildOperationState operation ->
                assert operation.id != null
                parent2Id = operation.id
                assert operation.parentId == null
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:56:07 UTC 2024
    - 29.3K bytes
    - Viewed (0)
Back to top