- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 145 for readFiles (0.39 sec)
-
src/testing/fstest/testfs.go
data2[i]++ } data2, err = fsys.ReadFile(file) if err != nil { t.errorf("%s: second call to fsys.ReadFile: %w", file, err) return } t.checkFileRead(file, "Readall vs second fsys.ReadFile", data, data2) t.checkBadPath(file, "ReadFile", func(name string) error { _, err := fsys.ReadFile(name); return err }) } // Check that fs.ReadFile works with t.fsys.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.3K bytes - Viewed (0) -
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) -
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) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileCodecs.kt
import org.gradle.internal.serialize.graph.readFile import org.gradle.internal.serialize.graph.writeFile class DirectoryCodec(private val fileFactory: FileFactory) : Codec<Directory> { override suspend fun WriteContext.encode(value: Directory) { writeFile(value.asFile) } override suspend fun ReadContext.decode(): Directory { return fileFactory.dir(readFile()) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 1.6K bytes - Viewed (0) -
pilot/pkg/xds/sds_test.go
}) genericMtlsCertCrl = makeSecret("generic-mtls-crl", map[string]string{ credentials.GenericScrtCert: readFile(filepath.Join(certDir, "dns/cert-chain.pem")), credentials.GenericScrtKey: readFile(filepath.Join(certDir, "dns/key.pem")), credentials.GenericScrtCaCert: readFile(filepath.Join(certDir, "dns/root-cert.pem")),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 13 20:55:20 UTC 2024 - 17.7K bytes - Viewed (0) -
src/io/ioutil/ioutil.go
return io.ReadAll(r) } // ReadFile reads the file named by filename 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. // // Deprecated: As of Go 1.16, this function simply calls [os.ReadFile]. func ReadFile(filename string) ([]byte, error) { return os.ReadFile(filename) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.2K bytes - Viewed (0) -
src/embed/embed.go
} list := make([]fs.DirEntry, len(dir.files)) for i := range list { list[i] = &dir.files[i] } return list, nil } // ReadFile reads and returns the content of the named file. func (f FS) ReadFile(name string) ([]byte, error) { file, err := f.Open(name) if err != nil { return nil, err } ofile, ok := file.(*openFile) if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:42:51 UTC 2024 - 13.5K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/ConfigurableFileTreeCodec.kt
import org.gradle.internal.serialize.graph.Codec import org.gradle.internal.serialize.graph.ReadContext import org.gradle.internal.serialize.graph.WriteContext import org.gradle.internal.serialize.graph.readFile import org.gradle.internal.serialize.graph.writeFile class ConfigurableFileTreeCodec( private val fileCollectionFactory: FileCollectionFactory ) : Codec<ConfigurableFileTree> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 1.7K bytes - Viewed (0) -
platforms/core-configuration/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/DefaultResolvableArtifactCodec.kt
import org.gradle.internal.serialize.graph.Codec import org.gradle.internal.serialize.graph.ReadContext import org.gradle.internal.serialize.graph.WriteContext import org.gradle.internal.serialize.graph.readFile import org.gradle.internal.serialize.graph.writeFile import org.gradle.internal.Describables import org.gradle.internal.component.local.model.ComponentFileArtifactIdentifier
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 18:56:44 UTC 2024 - 2.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go
u.logger.Printf("Failed to create report for %s: %v", expiry, err) continue } if fname != "" { u.logger.Printf("Ready to upload: %s", filepath.Base(fname)) todo.readyfiles = append(todo.readyfiles, fname) } } return todo.readyfiles, nil } // latestReport returns the YYYY-MM-DD of the last report uploaded // or the empty string if there are no reports. func latestReport(uploaded map[string]bool) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 14:52:56 UTC 2024 - 10.3K bytes - Viewed (0)