Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 720 for readFiles (0.58 sec)

  1. internal/ioutil/read_file.go

    	_, err = io.ReadFull(f, dst)
    	return dst, st, err
    }
    
    // ReadFile reads the named file and returns the contents.
    // A successful call returns err == nil, not err == EOF.
    // Because ReadFile reads the whole file, it does not treat an EOF from Read
    // as an error to be reported.
    //
    // passes NOATIME flag for reads on Unix systems to avoid atime updates.
    func ReadFile(name string) ([]byte, error) {
    	// Don't wrap with un-needed buffer.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 09 18:17:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/ComponentMetadataRulesErrorHandlingIntegrationTest.groovy

                }
            """
            resolve.prepare()
        }
    
        def "produces sensible error when bad code is supplied in component metadata rule" () {
            def lines = buildFile.readLines().size()
            buildFile << """
                class WrongRule implements ComponentMetadataRule {
                    public void execute(ComponentMetadataContext context) {
                        foo()
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  3. operator/pkg/manifest/shared_test.go

    			wantBytes, err := os.ReadFile(outPath)
    			want := string(wantBytes)
    			if err != nil {
    				t.Errorf("os.ReadFile() error = %v, filename: %v", err, outPath)
    			}
    
    			stdinReader := &bytes.Buffer{}
    
    			var filenames []string
    			for _, ol := range tt.overlays {
    				filename := filepath.Join(inDir, ol+".yaml")
    				if tt.stdin {
    					b, err := os.ReadFile(filename)
    					if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 23 16:28:53 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/robustio/robustio.go

    func Rename(oldpath, newpath string) error {
    	return rename(oldpath, newpath)
    }
    
    // ReadFile is like os.ReadFile, but on Windows retries errors that may
    // occur if the file is concurrently replaced.
    //
    // (See golang.org/issue/31247 and golang.org/issue/32188.)
    func ReadFile(filename string) ([]byte, error) {
    	return readFile(filename)
    }
    
    // RemoveAll is like os.RemoveAll, but on Windows retries errors that may occur
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/internal/upload/findwork.go

    					// date.
    					//
    					// TODO(rfindley): store the begin date in reports, so that we can
    					// verify this assumption.
    					u.logger.Printf("Uploadable: %s", fi.Name())
    					ans.readyfiles = append(ans.readyfiles, filepath.Join(localdir, fi.Name()))
    				}
    			} else {
    				// ...otherwise fall back on the old behavior of uploading all
    				// unuploaded files.
    				//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/binaryinfo/ReadelfBinaryInfo.groovy

            def process = ['readelf', '-h', binaryFile.absolutePath].execute()
            List<String> lines = process.inputStream.readLines()
            return readArch(lines)
        }
    
        List<String> listObjectFiles() {
            def process = ['ar', '-t', binaryFile.getAbsolutePath()].execute()
            return process.inputStream.readLines()
        }
    
        List<String> listLinkedLibraries() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 15:17:55 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/serialize/ClassPathEncodingExtensions.kt

        for (i in 0 until size) {
            builder.add(readFile())
        }
        return builder.build()
    }
    
    
    internal
    fun Decoder.readTransformedClassPath(): ClassPath {
        val size = readSmallInt()
        val builder = TransformedClassPath.builderWithExactSize(size)
        for (i in 0 until size) {
            builder.add(readFile(), readFile())
        }
        return builder.build()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/OnDemandFileAccessTest.groovy

        }
    
        def "acquires shared lock to read file"() {
            def action = {} as Supplier
    
            when:
            lock.readFile(action)
    
            then:
            !file.exists()
            1 * manager.lock(file, mode(LockMode.Shared), "some-lock") >> targetLock
            1 * targetLock.readFile(action)
            1 * targetLock.close()
            0 * targetLock._
        }
    
        def "acquires exclusive lock to update file"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. src/cmd/go/internal/robustio/robustio_flaky.go

    		err = os.Rename(oldpath, newpath)
    		return err, isEphemeralError(err)
    	})
    }
    
    // readFile is like os.ReadFile, but retries ephemeral errors.
    func readFile(filename string) ([]byte, error) {
    	var b []byte
    	err := retry(func() (err error, mayRetry bool) {
    		b, err = os.ReadFile(filename)
    
    		// Unlike in rename, we do not retry errFileNotFound here: it can occur
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go

    	Height() int
    
    	// ReadTiles returns the data for each requested tile.
    	// If ReadTiles returns err == nil, it must also return
    	// a data record for each tile (len(data) == len(tiles))
    	// and each data record must be the correct length
    	// (len(data[i]) == tiles[i].W*HashSize).
    	//
    	// An implementation of ReadTiles typically reads
    	// them from an on-disk cache or else from a remote
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top