- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 167 for tmpfiles (0.28 sec)
-
src/net/http/example_test.go
// To serve a directory on disk (/tmp) under an alternate URL // path (/tmpfiles/), use StripPrefix to modify the request // URL's path before the FileServer sees it: http.Handle("/tmpfiles/", http.StripPrefix("/tmpfiles/", http.FileServer(http.Dir("/tmp")))) } func ExampleStripPrefix() { // To serve a directory on disk (/tmp) under an alternate URL // path (/tmpfiles/), use StripPrefix to modify the request
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 19 16:12:45 UTC 2021 - 5.4K bytes - Viewed (0) -
cluster/log-dump/log-dump.sh
log-dump-ssh "${node_name}" "sudo journalctl --output=short-precise" > "${dir}/systemd.log" || true fi else local tmpfiles=() for f in "${kern_logfile}" "${initd_logfiles}" "${supervisord_logfiles}"; do IFS=' ' read -r -a tmpfiles <<< "$f" files+=("${tmpfiles[@]}") done fi # log where we pull the images from
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 21:15:57 UTC 2024 - 28.9K bytes - Viewed (0) -
pom.xml
<packaging.fess.systemd.dir>/usr/lib/systemd/system</packaging.fess.systemd.dir> <packaging.fess.systemd.sysctl.dir>/usr/lib/sysctl.d</packaging.fess.systemd.sysctl.dir> <packaging.fess.tmpfilesd.dir>/usr/lib/tmpfiles.d</packaging.fess.tmpfilesd.dir> <packaging.fess.dictionary.dir>/var/lib/fess/config</packaging.fess.dictionary.dir> </properties> <profiles> <profile> <id>build</id> <activation>
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu May 30 06:49:02 UTC 2024 - 48.7K bytes - Viewed (1) -
platforms/core-runtime/file-temp/src/main/java/org/gradle/api/internal/file/temp/TempFiles.java
import javax.annotation.CheckReturnValue; import java.io.File; import java.io.IOException; /** * Security safe API's for creating temporary files. */ public final class TempFiles { private TempFiles() { /* no-op */ } /** * Improves the security guarantees of {@link File#createTempFile(String, String, File)}. * * @see File#createTempFile(String, String, File)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:50:17 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/tempfile.go
// Give up return nil, fmt.Errorf("could not create file of the form %s%03d%s", prefix, 1, suffix) } var tempFiles []string var tempFilesMu = sync.Mutex{} // deferDeleteTempFile marks a file to be deleted by next call to Cleanup() func deferDeleteTempFile(path string) { tempFilesMu.Lock() tempFiles = append(tempFiles, path) tempFilesMu.Unlock() } // cleanupTempFiles removes any temporary files selected for deferred cleaning.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 22 23:33:06 UTC 2020 - 1.7K bytes - Viewed (0) -
internal/config/certs_test.go
func createTempFile(prefix, content string) (tempFile string, err error) { var tmpfile *os.File if tmpfile, err = os.CreateTemp("", prefix); err != nil { return tempFile, err } if _, err = tmpfile.Write([]byte(content)); err != nil { return tempFile, err } if err = tmpfile.Close(); err != nil { return tempFile, err } tempFile = tmpfile.Name() return tempFile, err }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 21.6K bytes - Viewed (0) -
src/io/ioutil/tempfile.go
package ioutil import ( "os" ) // TempFile creates a new temporary file in the directory dir, // opens the file for reading and writing, and returns the resulting *[os.File]. // The filename is generated by taking pattern and adding a random // string to the end. If pattern includes a "*", the random string // replaces the last "*". // If dir is the empty string, TempFile uses the default directory
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:34:35 UTC 2023 - 1.7K bytes - Viewed (0) -
pkg/volume/util/fs/fs_windows_test.go
} defer os.RemoveAll(dir1) tmpfile1, err := os.CreateTemp(dir1, "test") if _, err = tmpfile1.WriteString("just for testing"); err != nil { t.Fatalf("TestDiskUsage failed: %s", err.Error()) } dir2, err := os.MkdirTemp(dir1, "dir_2") if err != nil { t.Fatalf("TestDiskUsage failed: %s", err.Error()) } tmpfile2, err := os.CreateTemp(dir2, "test") if _, err = tmpfile2.WriteString("just for testing"); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/io_test.cc
auto* const env = tsl::Env::Default(); EXPECT_THAT(env->FileExists(*tmp_dir), IsOk()); ASSERT_THAT( WriteStringToFile(absl::StrCat(*tmp_dir, "/tmp_file1"), "test_string"), IsOk()); ASSERT_THAT( WriteStringToFile(absl::StrCat(*tmp_dir, "/tmp_file2"), "test_string"), IsOk()); ASSERT_THAT(env->RecursivelyCreateDir(absl::StrCat(*tmp_dir, "/subdir")), IsOk());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 03:28:15 UTC 2024 - 6.7K bytes - Viewed (0) -
src/os/tempfile.go
_ "unsafe" // for go:linkname ) // random number source provided by runtime. // We generate random temporary file names so that there's a good // chance the file doesn't exist yet - keeps the number of tries in // TempFile to a minimum. // //go:linkname runtime_rand runtime.rand func runtime_rand() uint64 func nextRandom() string { return itoa.Uitoa(uint(uint32(runtime_rand()))) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 18:04:39 UTC 2024 - 3.9K bytes - Viewed (0)