- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 76 for writeFile (0.04 sec)
-
internal/store/queuestore.go
if err = enc.Encode(items[i]); err != nil { return err } } path := filepath.Join(store.directory, key.String()) if key.Compress { err = os.WriteFile(path, s2.Encode(nil, buf.Bytes()), os.FileMode(0o770)) } else { err = os.WriteFile(path, buf.Bytes(), os.FileMode(0o770)) } buf.Reset() if err != nil { return err } // Increment the item count.
Registered: 2025-05-25 19:28 - Last Modified: 2025-02-15 10:31 - 7.8K bytes - Viewed (0) -
cmd/os-readdir_test.go
if _, err := readDir("/tmp/non-existent-directory"); err != errFileNotFound { t.Fatalf("expected = %s, got: %s", errFileNotFound, err) } file := path.Join(os.TempDir(), "issue") if err := os.WriteFile(file, []byte(""), 0o644); err != nil { t.Fatal(err) } defer os.RemoveAll(file) // Check if file is given. if _, err := readDir(path.Join(file, "mydir")); err != errFileNotFound {
Registered: 2025-05-25 19:28 - Last Modified: 2022-09-19 18:05 - 7.5K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
} err = os.WriteFile(fn+".json", []byte(filemap[file][name+".json"]), os.ModePerm) combineFiles[name] = append(combineFiles[name], fn) if err != nil { fmt.Println("WriteFile:", err) } err = os.WriteFile(filepath.Dir(fn)+"/filename.txt", []byte(file), os.ModePerm) if err != nil { fmt.Println("combine WriteFile:", err) } } }
Registered: 2025-05-25 19:28 - Last Modified: 2025-03-30 00:56 - 40.4K bytes - Viewed (0) -
api/next/73126.txt
Registered: 2025-05-27 11:13 - Last Modified: 2025-05-21 18:59 - 140 bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java
* <li> <code>TransactNamedPipe</code> A message-type pipe call that * writes to and reads from an existing pipe descriptor in one operation. * <li> <code>CreateFile</code>, <code>ReadFile</code>, * <code>WriteFile</code>, and <code>CloseFile</code> A byte-type pipe can * be opened, written to, read from and closed using the standard Win32 * file operations. * </ul> *
Registered: 2025-05-25 00:10 - Last Modified: 2019-03-22 21:10 - 7.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbNamedPipe.java
* <li><code>TransactNamedPipe</code> A message-type pipe call that * writes to and reads from an existing pipe descriptor in one operation. * <li><code>CreateFile</code>, <code>ReadFile</code>, * <code>WriteFile</code>, and <code>CloseFile</code> A byte-type pipe can * be opened, written to, read from and closed using the standard Win32 * file operations. * </ul> * * <p>
Registered: 2025-05-25 00:10 - Last Modified: 2018-07-01 13:12 - 6K bytes - Viewed (0) -
cni/pkg/install/kubeconfig_test.go
k8sServicePort = "443" kubeCAFilepath = "testdata/kube-ca.crt" saToken = "service_account_token_string" ) func TestCreateValidKubeconfigFile(t *testing.T) { tmp := t.TempDir() os.WriteFile(filepath.Join(tmp, "token"), []byte(saToken), 0o644) cases := []struct { name string expectedFailure bool k8sServiceProtocol string k8sServiceHost string k8sServicePort string
Registered: 2025-05-28 22:53 - Last Modified: 2024-08-14 19:36 - 3.8K bytes - Viewed (0) -
docs_src/generate_clients/tutorial004.js
Registered: 2025-05-25 07:19 - Last Modified: 2024-03-14 11:40 - 1K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux_test.go
/dev/2 /path/to/1/2 type2 flags,1,2=3 2 2 /dev/3 /path/to/1.1 type3 flags,1,2=3 3 3 ` var err error dir := t.TempDir() mountsPath := filepath.Join(dir, "mounts") if err = os.WriteFile(mountsPath, []byte(successCase), 0o666); err != nil { t.Fatal(err) } // Failure case where we detected successfully cross device mounts. { absPaths := []string{"/path/to/1"}
Registered: 2025-05-25 19:28 - Last Modified: 2024-01-18 07:03 - 7.3K bytes - Viewed (0) -
operator/cmd/mesh/manifest_shared_test.go
func readFile(path string) (string, error) { b, err := os.ReadFile(path) return string(b), err } // writeFile writes a file and returns an error if operation is unsuccessful. func writeFile(path string, data []byte) error { return os.WriteFile(path, data, 0o644) } // inFileAbsolutePath returns the absolute path for an input file like "gateways".
Registered: 2025-05-28 22:53 - Last Modified: 2024-08-15 16:31 - 8.4K bytes - Viewed (0)