Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for dirFile2 (0.11 sec)

  1. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DirectoryFileTreeTest.groovy

            def dirFile2 = dir1.createFile("dirFile2")
            def rootFile2 = root.createFile("rootFile2")
    
            def fileTree = new DirectoryFileTree(root, new PatternSet(), TestFiles.fileSystem(), false).postfix()
    
            when:
            fileTree.visit(visitor)
    
            then:
            visitor.visited.sort() == [rootFile1, rootFile2, dirFile2, dirFile1, dir1].sort()
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/FileSystemSnapshotFilterTest.groovy

            filteredPaths(unfiltered, include("**/*2")) == [root, dir1, dirFile2, subdir, rootFile2] as Set
            filteredPaths(unfiltered, include("dir1/**")) == [root, dir1, dirFile1, dirFile2, subdir, subdirFile1] as Set
            filteredPaths(unfiltered, include("*/subdir/**")) == [root, dir1, subdir, subdirFile1] as Set
            filteredPaths(unfiltered, include("dir1/dirFile1")) == [root, dir1, dirFile1] as Set
        }
    
        def "filters empty tree"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. build-logic/packaging/src/main/kotlin/gradlebuild.install.gradle.kts

    }
    
    fun validateInstallDir(installDir: Directory) = installDir.also { dir ->
        val dirFile = dir.asFile
        if (dirFile.isFile) {
            throw RuntimeException("Install directory $dir is not valid: it is actually a file")
        }
        if (dirFile.list()?.isEmpty() != false) {
            return@also
        }
        val binDirFiles = dirFile.resolve("bin").list()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 22 07:17:43 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. src/go/types/stdlib_test.go

    		t.Skip("skipping in short mode")
    	}
    
    	testenv.MustHaveGoBuild(t)
    
    	// Collect non-test files.
    	dirFiles := make(map[string][]string)
    	root := filepath.Join(testenv.GOROOT(t), "src")
    	walkPkgDirs(root, func(dir string, filenames []string) {
    		dirFiles[dir] = filenames
    	}, t.Error)
    
    	c := &stdlibChecker{
    		dirFiles: dirFiles,
    		pkgs:     make(map[string]*futurePackage),
    	}
    
    	start := time.Now()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/stdlib_test.go

    		t.Skip("skipping in short mode")
    	}
    
    	testenv.MustHaveGoBuild(t)
    
    	// Collect non-test files.
    	dirFiles := make(map[string][]string)
    	root := filepath.Join(testenv.GOROOT(t), "src")
    	walkPkgDirs(root, func(dir string, filenames []string) {
    		dirFiles[dir] = filenames
    	}, t.Error)
    
    	c := &stdlibChecker{
    		dirFiles: dirFiles,
    		pkgs:     make(map[string]*futurePackage),
    	}
    
    	start := time.Now()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/mod/sumdb/dirhash/hash.go

    // used in the hash function.
    func HashDir(dir, prefix string, hash Hash) (string, error) {
    	files, err := DirFiles(dir, prefix)
    	if err != nil {
    		return "", err
    	}
    	osOpen := func(name string) (io.ReadCloser, error) {
    		return os.Open(filepath.Join(dir, strings.TrimPrefix(name, prefix)))
    	}
    	return hash(files, osOpen)
    }
    
    // DirFiles returns the list of files in the tree rooted at dir,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/mod/zip/zip.go

    	}
    	wantDir := filepath.Join(dir, ".git")
    	return wantDir == gitDir
    }
    
    type dirFile struct {
    	filePath, slashPath string
    	info                os.FileInfo
    }
    
    func (f dirFile) Path() string                 { return f.slashPath }
    func (f dirFile) Lstat() (os.FileInfo, error)  { return f.info, nil }
    func (f dirFile) Open() (io.ReadCloser, error) { return os.Open(f.filePath) }
    
    type zipFile struct {
    	name string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 31K bytes
    - Viewed (0)
Back to top