- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 57 for read_file (0.07 seconds)
-
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
} @Test void testPublicShareAccess() throws Exception { // Test operations on public share SmbFile readmeFile = new SmbFile(baseUrl + "public/readme.txt", context); assertTrue(readmeFile.exists(), "File in public share should be accessible"); assertTrue(readmeFile.canRead(), "File in public share should be readable"); } // ========== Advanced Features ========== @TestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0) -
cmd/xl-storage-disk-id-check.go
return nil, err } defer done(0, &err) return p.storage.ListDir(ctx, origvolume, volume, dirPath, count) } // Legacy API - does not have any deadlines func (p *xlStorageDiskIDCheck) ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (n int64, err error) { ctx, done, err := p.TrackDiskHealth(ctx, storageMetricReadFile, volume, path) if err != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Apr 25 05:41:04 GMT 2025 - 34.5K bytes - Click Count (0) -
cmd/metacache-stream_test.go
func loadMetacacheSample(t testing.TB) *metacacheReader { b, err := os.ReadFile("testdata/metacache.s2") if err != nil { t.Fatal(err) } return newMetacacheReader(bytes.NewReader(b)) } func loadMetacacheSampleEntries(t testing.TB) metaCacheEntriesSorted { r := loadMetacacheSample(t)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 15K bytes - Click Count (0) -
docs/debugging/xl-meta/main.go
func readAndMap(files []string, partNum, blockNum int) (*mappedData, error) { var m mappedData sort.Strings(files) m.parityData = make(map[int]map[int][]byte) for _, file := range files { meta, err := os.ReadFile(file + ".json") if err != nil { return nil, err } type erasureInfo struct { V2Obj *struct { EcDist []int EcIndex int EcM int EcN int
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 40.4K bytes - Click Count (0) -
cmd/erasure-decode_test.go
package cmd import ( "bytes" "context" crand "crypto/rand" "io" "math/rand" "testing" "github.com/dustin/go-humanize" ) func (a badDisk) ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (n int64, err error) { return 0, errFaultyDisk } var erasureDecodeTests = []struct { dataBlocks int
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 21K bytes - Click Count (0) -
api/go1.19.txt
pkg go/doc, func ToText //deprecated #51082 pkg io/ioutil, func NopCloser //deprecated #42026 pkg io/ioutil, func ReadAll //deprecated #42026 pkg io/ioutil, func ReadDir //deprecated #42026 pkg io/ioutil, func ReadFile //deprecated #42026 pkg io/ioutil, func TempDir //deprecated #42026 pkg io/ioutil, func TempFile //deprecated #42026 pkg io/ioutil, func WriteFile //deprecated #42026
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Dec 02 16:29:41 GMT 2022 - 17.9K bytes - Click Count (0) -
RELEASE.md
`tf.io.decode_compressed`, `tf.io.decode_json_example`, `tf.io.decode_raw`, `tf.io.encode_base64`, `tf.io.matching_files`, `tf.io.parse_tensor`, `tf.io.read_file,`tf.io.write_file`. * New endpoints in tf.linalg namespace: `tf.linalg.cross`, `tf.linalg.tensor_diag` (corresponds to `tf.diag`), `tf.linalg.tensor_diag_part` (corresponds to `tf.diag_part`).Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Tue Oct 28 22:27:41 GMT 2025 - 740.4K bytes - Click Count (3) -
cmd/erasure-healing_test.go
if err != nil { t.Fatal(err) } for _, drive := range fsDirs { dir := path.Join(drive, bucket, object, uuid.String()) _, err := os.ReadFile(pathJoin(dir, "part.1")) if err == nil { t.Fatal("expected data dit to be cleaned up") } } // Remove the bucket - to simulate the case where bucket was // created when the disk was down.Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 48.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
fun explicitRemoveAppliedToDiskImmediately() { val editor = cache.edit("k1")!! editor.setString(0, "ABC") editor.setString(1, "B") editor.commit() val k1 = getCleanFile("k1", 0) assertThat(readFile(k1)).isEqualTo("ABC") cache.remove("k1") assertThat(filesystem.exists(k1)).isFalse() } @Test fun removePreventsActiveEditFromStoringAValue() { set("a", "a", "a")
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 59.4K bytes - Click Count (0) -
internal/s3select/csv/reader_contrib_test.go
t.Errorf("Case %d failed: expected %v result %v", i, c.content, result.String()) } } } type tester interface { Fatal(...any) } func openTestFile(t tester, file string) []byte { f, err := os.ReadFile("testdata/testdata.zip") if err != nil { t.Fatal(err) } z, err := zip.NewReader(bytes.NewReader(f), int64(len(f))) if err != nil { t.Fatal(err) } for _, f := range z.File { if f.Name == file {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 38.4K bytes - Click Count (0)