- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 149 for temp_file (0.24 sec)
-
platforms/core-runtime/file-temp/src/test/groovy/org/gradle/api/internal/file/temp/TempFilesTest.groovy
@TempDir File tempDir; def "can generate temp files for short prefixes"() { when: def file = TempFiles.createTempFile("ok", "", tempDir) then: file.exists() } def "can generate temp files for no prefix"() { when: def file = TempFiles.createTempFile(null, null, tempDir) then: file.exists() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:50:17 UTC 2023 - 1.1K bytes - Viewed (0) -
tests/fuzz/analyzer_fuzzer.go
data, err := f.GetBytes() if err != nil { return "nobytes", err } tmpfile, err := os.CreateTemp("", "example") if err != nil { return "nofile", err } if _, err := tmpfile.Write(data); err != nil { return "nofile", err } if err := tmpfile.Close(); err != nil { return "nofile", err } return tmpfile.Name(), nil } // createRandomConfigFiles creates a slice of ReaderSources
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common.py
"""Serves as a common "main" function for all the SavedModel tests. There is a fair amount of setup needed to initialize tensorflow and get it into a proper TF2 execution mode. This hides that boilerplate. """ import tempfile from absl import app from absl import flags from absl import logging import tensorflow.compat.v2 as tf from tensorflow.python import pywrap_mlir # pylint: disable=g-direct-tensorflow-import
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 23:49:27 UTC 2023 - 4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/DefaultClasspathBuilder.java
File tmpFile = temporaryFileProvider.createTemporaryFile(jarFile.getName(), ".tmp"); try { Files.createDirectories(parentDir.toPath()); inPlaceBuilder.jar(tmpFile, action); Files.move(tmpFile.toPath(), jarFile.toPath(), StandardCopyOption.REPLACE_EXISTING); } finally { Files.deleteIfExists(tmpFile.toPath()); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 3.8K bytes - Viewed (0) -
internal/disk/stat_test.go
} for _, testCase := range testCases { testCase := testCase t.Run("", func(t *testing.T) { tmpfile, err := os.CreateTemp("", "testfile") if err != nil { t.Error(err) } tmpfile.WriteString(testCase.stat) tmpfile.Sync() tmpfile.Close() iostats, err := readDriveStats(tmpfile.Name()) if err != nil && !testCase.expectErr { t.Fatalf("unexpected err; %v", err) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 3.6K bytes - Viewed (0) -
src/io/ioutil/ioutil_test.go
contents, err = ReadFile(filename) if err != nil { t.Fatalf("ReadFile %s: %v", filename, err) } checkSize(t, filename, int64(len(contents))) } func TestWriteFile(t *testing.T) { f, err := TempFile("", "ioutil-test") if err != nil { t.Fatal(err) } filename := f.Name() data := "Programming today is a race between software engineers striving to " +
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 3.2K bytes - Viewed (0) -
docs/ko/docs/tutorial/request-files.md
* file-like object를 필요로하는 다른 라이브러리에 직접적으로 전달할 수 있는 파이썬 <a href="https://docs.python.org/3/library/tempfile.html#tempfile.SpooledTemporaryFile" class="external-link" target="_blank">`SpooledTemporaryFile`</a> 객체를 반환합니다. ### `UploadFile` `UploadFile` 은 다음과 같은 어트리뷰트가 있습니다:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 8.1K bytes - Viewed (0) -
pkg/util/filesystem/defaultfs.go
} // TempDir via os.MkdirTemp func (fs *DefaultFs) TempDir(dir, prefix string) (string, error) { return os.MkdirTemp(fs.prefix(dir), prefix) } // TempFile via os.CreateTemp func (fs *DefaultFs) TempFile(dir, prefix string) (File, error) { file, err := os.CreateTemp(fs.prefix(dir), prefix) if err != nil { return nil, err } return &defaultFile{file}, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 03 07:38:14 UTC 2023 - 4.7K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
err = os.RemoveAll(tmpdir) if err != nil { t.Fatalf("Fail to remove tmpdir: %v", err) } }() tmpfile, err := os.CreateTemp(tmpdir, "") if err != nil { t.Fatalf("Couldn't create tmpfile: %v", err) } if err := tmpfile.Close(); err != nil { t.Fatalf("Couldn't close tmpfile: %v", err) } tests := []struct { name string filename string want bool }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0) -
src/cmd/internal/obj/x86/pcrelative_test.go
err = os.WriteFile(filepath.Join(tmpdir, "go.mod"), []byte(fmt.Sprintf("module %s\n", mname)), 0666) if err != nil { t.Fatal(err) } tmpfile, err := os.Create(filepath.Join(tmpdir, "input.s")) if err != nil { t.Fatal(err) } defer tmpfile.Close() _, err = tmpfile.WriteString(source) if err != nil { t.Fatal(err) } tmpfile2, err := os.Create(filepath.Join(tmpdir, "input.go")) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 23:16:01 UTC 2024 - 2.3K bytes - Viewed (0)