Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 174 for sysdir (0.12 sec)

  1. tools/bug-report/pkg/archive/archive.go

    }
    
    // Create creates a gzipped tar file from srcDir and writes it to outPath.
    func Create(srcDir, outPath string) error {
    	mw, err := os.Create(outPath)
    	if err != nil {
    		return err
    	}
    	defer mw.Close()
    	gzw := gzip.NewWriter(mw)
    	defer gzw.Close()
    
    	tw := tar.NewWriter(gzw)
    	defer tw.Close()
    
    	return filepath.Walk(srcDir, func(file string, fi os.FileInfo, err error) error {
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 30 00:10:16 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. pkg/volume/git_repo/git_repo.go

    		// Done!
    		volumeutil.SetReady(b.getMetaDir())
    		return nil
    	}
    
    	var subdir string
    
    	switch {
    	case len(b.target) != 0 && filepath.Clean(b.target) == ".":
    		// if target dir is '.', use the current dir
    		subdir = filepath.Join(dir)
    	case len(files) == 1:
    		// if target is not '.', use the generated folder
    		subdir = filepath.Join(dir, files[0].Name())
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modindex/scan.go

    	if !isDir(absdir) {
    		// package was not found
    		p.error = fmt.Errorf("cannot find package in:\n\t%s", absdir).Error()
    		return p
    	}
    
    	entries, err := fsys.ReadDir(absdir)
    	if err != nil {
    		p.error = err.Error()
    		return p
    	}
    
    	fset := token.NewFileSet()
    	for _, d := range entries {
    		if d.IsDir() {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/jdk7/Jdk7SymlinkTest.groovy

            then:
            symlink.isSymlink(new File(testDirectory, 'testFile'))
    
            when:
            symlink.symlink(new File(testDirectory, 'testDir'), testDirectory.createDir('symDir'))
    
            then:
            symlink.isSymlink(new File(testDirectory, 'testDir'))
        }
    
        @Requires(UnitTestPreconditions.Windows)
        def 'can detect Windows symbolic links as symbolic links'() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. platforms/ide/ide-native/src/test/groovy/org/gradle/ide/visualstudio/tasks/internal/RelativeFileNameTransformerTest.groovy

            filePath                   | relativePath
            "child.txt"                | "../../child.txt"
            "subdir"                   | "../../subdir"
            "subdir/child.txt"         | "../../subdir/child.txt"
            "subdir/another"           | "../../subdir/another"
            "subdir/another/child.txt" | "../../subdir/another/child.txt"
            "another/dir/child.txt"    | "../../another/dir/child.txt"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_vendor_embed.txt

    go mod vendor
    cmp vendor/example.com/a/samedir_embed.txt a/samedir_embed.txt
    cmp vendor/example.com/a/subdir/embed.txt a/subdir/embed.txt
    cmp vendor/example.com/a/subdir/test/embed.txt a/subdir/test/embed.txt
    cmp vendor/example.com/a/subdir/test/xtest/embed.txt a/subdir/test/xtest/embed.txt
    
    cd broken_no_matching_files
    ! go mod vendor
    stderr '^go: resolving embeds in example.com/brokendep: pattern foo.txt: no matching files found$'
    go mod vendor -e
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:14:55 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/PathFactoryTest.groovy

            // Using normalised absolute urls
            factory.path(subDir) == factory.path("file://${relpath(subDir)}")
            factory.path(subDir) == factory.path("file://${relpath(childFile)}/../..")
            factory.path("file://${relpath(subDir)}") != factory.path("file://${relpath(childFile)}")
    
            // Using absolute paths
            factory.path(subDir) == factory.path("file://${subDir.absolutePath}")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/fingerprint/classpath/impl/DefaultClasspathFingerprinterTest.groovy

                subdir {
                    file('someOtherFile.log').text = "File in subdir"
                }
            }.zipTo(zipFile)
            def classes = file('classes').create {
                file('thirdFile.txt').text = "Third file"
                file('fourthFile.txt').text = "Fourth file"
                subdir {
                    file('build.log').text = "File in subdir"
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:33 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/files/fileCollections/groovy/build.gradle

        doLast {
            File srcDir
    
            // Create a file collection using a closure
            collection = projectDirectory.files { srcDir.listFiles() }
    
            srcDir = projectDirectory.file('src').asFile
            println "Contents of $srcDir.name"
            collection.collect { projectDirectory.asFile.relativePath(it) }.sort().each { println it }
    
            srcDir = projectDirectory.file('src2').asFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 13:55:00 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CompositeCleanupAction.java

            private final CleanableStore delegate;
            private final File subDir;
            private final String displayName;
    
            CleanableSubDir(CleanableStore delegate, File subDir) {
                this.delegate = delegate;
                this.subDir = subDir;
                this.displayName = delegate.getDisplayName() + " [subdir: " + subDir + "]";
            }
    
            @Override
            public String getDisplayName() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top