- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 475 for writeTime (0.18 sec)
-
test/fixedbugs/issue52127.go
panic(err) } defer os.RemoveAll(dir) args := []string{"go", "build"} write := func(prefix string, i int, data string) { filename := filepath.Join(dir, fmt.Sprintf("%s%d.go", prefix, i)) if err := os.WriteFile(filename, []byte(data), 0o644); err != nil { panic(err) } args = append(args, filename) } for i := 0; i < 100; i++ { write("a", i, `package p `) } for i := 0; i < 100; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileLock.java
import java.io.Closeable; import java.io.File; public interface FileLock extends Closeable, FileAccess { /** * Returns true if the most recent mutation method ({@link #updateFile(Runnable)} or {@link #writeFile(Runnable)} attempted by any process succeeded * (ie a process did not crash while updating the target file). * * Returns false if no mutation method has ever been called for the target file. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 1.8K bytes - Viewed (0) -
src/cmd/go/help_test.go
} diff := diff.Diff(srcPath, old, "go help documentation | gofmt", alldocs) if diff == nil { t.Logf("%s is up to date.", srcPath) return } if *fixDocs { if err := os.WriteFile(srcPath, alldocs, 0666); err != nil { t.Fatal(err) } t.Logf("wrote %d bytes to %s", len(alldocs), srcPath) } else { t.Logf("\n%s", diff) t.Errorf("%s is stale. To update, run 'go generate cmd/go'.", srcPath)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 28 15:45:49 UTC 2023 - 1.6K bytes - Viewed (0) -
src/internal/coverage/cfile/ts_test.go
// present in the coverage report from F. func genAuxMeta(t *testing.T, dstdir string) (string, string) { // Do a GOCOVERDIR=<tmp> go run hello.go src := filepath.Join(dstdir, "hello.go") if err := os.WriteFile(src, []byte(hellogo), 0777); err != nil { t.Fatalf("write failed: %v", err) } args := []string{"run", "-covermode=" + testing.CoverMode(), src} cmd := exec.Command(testenv.GoToolPath(t), args...)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:58:07 UTC 2024 - 5.2K 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: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 6K bytes - Viewed (0) -
build-logic/kotlin-dsl/src/main/kotlin/gradlebuild/kotlindsl/generator/tasks/CodeGenerationTask.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Sep 30 16:17:26 UTC 2023 - 1.6K bytes - Viewed (0) -
test/fixedbugs/issue21576.go
c <- 1 } ` func main() { dir, err := ioutil.TempDir("", "21576") if err != nil { log.Fatal(err) } defer os.RemoveAll(dir) file := filepath.Join(dir, "main.go") if err := ioutil.WriteFile(file, []byte(prog), 0655); err != nil { log.Fatalf("Write error %v", err) } // Using a timeout of 1 minute in case other factors might slow // down the start of "go run". See https://golang.org/issue/34836.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GFileUtils.java
return "Unable to read file '" + file + "' due to: " + e.toString(); } } public static void writeFile(String content, File destination) { writeFile(content, destination, Charset.defaultCharset().name()); } public static void writeFile(String content, File destination, String encoding) { try { FileUtils.writeStringToFile(destination, content, encoding);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 10.8K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/cache/internal/DefaultFileLockManagerTestHelper.groovy
} static void unlockUncleanly(File target) { def lock = createDefaultFileLock(target) try { lock.writeFile { throw new AnException() } } catch (AnException e) { lock.close() } lock = createDefaultFileLock(target) try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:52:52 UTC 2024 - 2.9K bytes - Viewed (0) -
src/internal/goos/gengoos.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 15 21:31:23 UTC 2022 - 1.8K bytes - Viewed (0)