- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 53 for FilePath (0.06 seconds)
-
cmd/bitrot-whole.go
// Returns whole-file bitrot writer. func newWholeBitrotWriter(disk StorageAPI, volume, filePath string, algo BitrotAlgorithm, shardSize int64) io.WriteCloser { return &wholeBitrotWriter{disk, volume, filePath, shardSize, algo.New()} } // Implementation to verify bitrot for the whole file. type wholeBitrotReader struct { disk StorageAPI volume string filePath string verifier *BitrotVerifier // Holds the bit-rot info
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Jan 31 02:11:45 GMT 2024 - 2.7K bytes - Click Count (0) -
docs_src/generate_clients/tutorial004.js
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 14 11:40:05 GMT 2024 - 1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestBodyTest.kt
assertOnPath(content) { FileInputStream(filePath.toFile()).use { fis -> fn(fis.fd) } } private inline fun <T> assertOnPath( content: String? = null, fn: (okio.Path) -> T, ): T { FileSystem.SYSTEM.write(filePath) { if (content != null) { writeUtf8(content) } } return fn(filePath) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 14:16:29 GMT 2025 - 3.8K bytes - Click Count (1) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/FixProjectHealthTask.kt
} currentFilePath?.let { filePath -> when { line.contains("These transitive dependencies should be declared directly:") -> { dependencyFixes.addToMap(filePath, extractDependencies(index)) }Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Mar 03 06:57:08 GMT 2025 - 6.2K bytes - Click Count (1) -
cmd/bitrot-streaming.go
func newStreamingBitrotReader(disk StorageAPI, data []byte, volume, filePath string, tillOffset int64, algo BitrotAlgorithm, shardSize int64) *streamingBitrotReader { h := algo.New() return &streamingBitrotReader{ disk: disk, data: data, volume: volume, filePath: filePath, tillOffset: ceilFrac(tillOffset, shardSize)*int64(h.Size()) + tillOffset, h: h,
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Jan 17 19:19:30 GMT 2025 - 6.2K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java
} private Profile newExistsProfile(String filePath) { ActivationFile activationFile = ActivationFile.newBuilder().exists(filePath).build(); return newProfile(activationFile); } private Profile newMissingProfile(String filePath) { ActivationFile activationFile = ActivationFile.newBuilder().missing(filePath).build(); return newProfile(activationFile);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 07:09:12 GMT 2025 - 6.2K bytes - Click Count (0) -
cmd/bitrot_test.go
func testBitrotReaderWriterAlgo(t *testing.T, bitrotAlgo BitrotAlgorithm) { tmpDir := t.TempDir() volume := "testvol" filePath := "testfile" disk, err := newLocalXLStorage(tmpDir) if err != nil { t.Fatal(err) } disk.MakeVol(t.Context(), volume) writer := newBitrotWriter(disk, "", volume, filePath, 35, bitrotAlgo, 10) _, err = writer.Write([]byte("aaaaaaaaaa")) if err != nil { t.Fatal(err) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 2K bytes - Click Count (0) -
cmd/bitrot.go
func newBitrotWriter(disk StorageAPI, origvolume, volume, filePath string, length int64, algo BitrotAlgorithm, shardSize int64) io.Writer { if algo == HighwayHash256S { return newStreamingBitrotWriter(disk, origvolume, volume, filePath, length, algo, shardSize) } return newWholeBitrotWriter(disk, volume, filePath, algo, shardSize) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.7K bytes - Click Count (0) -
build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/precommit/LicenseHeadersPrecommitPluginFuncTest.groovy
then: result.task(":licenseHeaders").outcome == TaskOutcome.SUCCESS } private File unapprovedSourceFile(String filePath = "src/main/java/org/acme/UnapprovedLicensed.java") { File sourceFile = file(filePath); sourceFile << """ /* * Copyright (C) 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License");Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Fri Sep 03 10:22:28 GMT 2021 - 4.1K bytes - Click Count (0) -
internal/disk/directio_darwin.go
) // ODirectPlatform indicates if the platform supports O_DIRECT const ODirectPlatform = true // OpenFileDirectIO - bypass kernel cache. func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) { return directio.OpenFile(filePath, flag, perm) } // DisableDirectIO - disables directio mode. func DisableDirectIO(f *os.File) error { fd := f.Fd() _, err := unix.FcntlInt(fd, unix.F_NOCACHE, 0)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sat Jun 17 14:31:36 GMT 2023 - 1.4K bytes - Click Count (0)