- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 149 for temp_file (0.22 sec)
-
cmd/kubeadm/app/util/runtime/runtime_test.go
}{ { name: "Valid domain socket is detected as such", proc: func(t *testing.T) { tmpFile, err := os.CreateTemp("", tempPrefix) if err != nil { t.Fatalf("unexpected error by TempFile: %v", err) } theSocket := tmpFile.Name() os.Remove(theSocket) tmpFile.Close() con, err := net.Listen("unix", theSocket) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 06:33:22 UTC 2024 - 11.1K bytes - Viewed (0) -
pkg/kubelet/util/store/filestore.go
// Create a temporary file in the base directory of `path` with a prefix. tmpFile, err := fs.TempFile(filepath.Dir(path), tmpPrefix) if err != nil { return err } tmpPath := tmpFile.Name() shouldClose := true defer func() { // Close the file. if shouldClose { if err := tmpFile.Close(); err != nil { if retErr == nil { retErr = fmt.Errorf("close error: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 18 15:08:27 UTC 2022 - 3.9K bytes - Viewed (0) -
pkg/kubelet/kubeletconfig/util/files/files.go
dir := filepath.Dir(path) prefix := tmpTag + filepath.Base(path) // create the tmp file tmpFile, err := fs.TempFile(dir, prefix) if err != nil { return "", err } defer func() { // close the file, return the close error only if there haven't been any other errors if err := tmpFile.Close(); retErr == nil { retErr = err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 01:02:46 UTC 2023 - 7.5K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_helper.h
#define TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_GCS_GCS_HELPER_H_ #include <fstream> #include <string> class TempFile : public std::fstream { public: // We should specify openmode each time we call TempFile. TempFile(const std::string& temp_file_name, std::ios::openmode mode); TempFile(TempFile&& rhs); ~TempFile() override; const std::string getName() const; bool truncate(); private: const std::string name_; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 26 14:56:58 UTC 2020 - 1.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java
private final File tempFile; private final FileInputStream fileInputStream; public TemporaryFileInputStream(final File tempFile) throws FileNotFoundException { this.tempFile = tempFile; fileInputStream = new FileInputStream(tempFile); } public File getTemporaryFile() { return tempFile; } /* * (non-Javadoc) *
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2.3K bytes - Viewed (0) -
platforms/jvm/language-java/src/test/groovy/org/gradle/external/javadoc/internal/JavadocOptionFileWriterTest.groovy
setup: def tempFile = temporaryFolder.createFile("optionFile") def optionsMap = createOptionsMap() when: _ * optionfile.options >> optionsMap _ * optionfile.getSourceNames() >> new OptionLessStringsJavadocOptionFileOption([]); javadocOptionFileWriter.write(tempFile) then: tempFile.text == toPlatformLineSeparators("""-key1 'value1' -key2 'value2'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 2.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/esreq/AdminEsreqAction.java
final File tempFile = ComponentUtil.getSystemHelper().createTempFile("esreq_", ".json"); try (final InputStream in = response.getContentAsStream()) { CopyUtil.copy(in, tempFile); } catch (final Exception e1) { if (tempFile != null && tempFile.exists() && !tempFile.delete()) {
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 6.2K bytes - Viewed (0) -
maven-model-builder/src/test/java/org/apache/maven/model/building/FileModelSourceTest.java
@Test void testEquals() throws Exception { File tempFile = createTempFile("pomTest"); FileModelSource instance = new FileModelSource(tempFile); assertFalse(instance.equals(null)); assertFalse(instance.equals(new Object())); assertTrue(instance.equals(instance)); assertTrue(instance.equals(new FileModelSource(tempFile))); } @Test
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sat Apr 15 17:24:20 UTC 2023 - 2.4K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_helper.cc
#include <stdio.h> #include <fstream> #include <string> #include <utility> TempFile::TempFile(const std::string& temp_file_name, std::ios::openmode mode) : std::fstream(temp_file_name, mode), name_(temp_file_name) {} TempFile::TempFile(TempFile&& rhs) : std::fstream(std::move(rhs)), name_(std::move(rhs.name_)) {} TempFile::~TempFile() { std::fstream::close(); std::remove(name_.c_str()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 26 14:56:58 UTC 2020 - 1.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/ResponseDataUtil.java
} public static File createResponseBodyFile(final ResponseData responseData) { File tempFile = null; FileOutputStream fos = null; try (final InputStream is = responseData.getResponseBody()) { tempFile = File.createTempFile("crawler-", ".tmp"); fos = new FileOutputStream(tempFile); CopyUtil.copy(is, fos); } catch (final Exception e) {
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 1.8K bytes - Viewed (0)