- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 52 for TempDir (0.12 sec)
-
android/guava/src/com/google/common/io/TempFileCreator.java
String baseName = System.currentTimeMillis() + "-"; for (int counter = 0; counter < TEMP_DIR_ATTEMPTS; counter++) { File tempDir = new File(baseDir, baseName + counter); if (tempDir.mkdir()) { return tempDir; } } throw new IllegalStateException( "Failed to create directory within " + TEMP_DIR_ATTEMPTS
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 12.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java
if (servletContext.getAttribute(CONTEXT_TEMPDIR_KEY) instanceof final File tempDirFile) { final String tempDir = tempDirFile.getAbsolutePath(); if (tempDir != null && tempDir.length() > 0) { return tempDir; } } return System.getProperty(JAVA_IO_TMPDIR_KEY); } // -----------------------------------------------------
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 18.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/IoTestCase.java
* the tear-down for this test. Subsequent invocations of this method will return the same * directory. */ protected final File getTempDir() throws IOException { if (tempDir == null) { tempDir = createTempDir(); } return tempDir; } /** * Creates a new temp file in the temp directory returned by {@link #getTempDir()}. The file will * be deleted in the tear-down for this test. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 5.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/ExecJobTest.java
// Test with existing directory File testDir = new File(tempDir, "test_delete_dir"); assertTrue(testDir.mkdir()); assertTrue(testDir.exists()); execJob.testDeleteTempDir(testDir); assertFalse(testDir.exists()); // Test with non-existent directory File nonExistentDir = new File(tempDir, "non_existent"); execJob.testDeleteTempDir(nonExistentDir); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 24.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
Files.createDirectories(tempDir.resolve("public")); Files.createDirectories(tempDir.resolve("shared")); // Create some initial files Files.writeString(tempDir.resolve("public/readme.txt"), "This is a public share for testing"); Files.writeString(tempDir.resolve("shared/initial.txt"), "Initial file in shared directory");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java
generator.setCommandDestroyTimeout(timeout); assertTrue(true); } public void test_setBaseDir() throws Exception { final File tempDir = new File(System.getProperty("java.io.tmpdir")); generator.setBaseDir(tempDir); assertTrue(true); } public void test_setCommandList() throws Exception { final List<String> commands = Collections.singletonList("test_command");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sun Aug 31 08:19:00 UTC 2025 - 16.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb/SmbClientTest.java
super.setUp(); Path tempDir = Files.createTempDirectory("smbdata"); Path publicDir = tempDir.resolve("public"); Files.createDirectory(publicDir); Path usersDir = tempDir.resolve("users"); Files.createDirectory(usersDir); Path testuser1Dir = tempDir.resolve("testuser1"); Files.createDirectory(testuser1Dir); Path testuser2Dir = tempDir.resolve("testuser2");
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 13.7K bytes - Viewed (0) -
cmd/common-main_test.go
}, { " \t\n Hello, Gophers \n\t\r\n", false, "Hello, Gophers", }, } for _, testCase := range testCases { t.Run("", func(t *testing.T) { tmpfile, err := os.CreateTemp(t.TempDir(), "testfile") if err != nil { t.Error(err) } tmpfile.WriteString(testCase.content) tmpfile.Sync() tmpfile.Close() value, err := readFromSecret(tmpfile.Name())
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3.7K bytes - Viewed (0) -
cmd/xl-storage_windows_test.go
{"/a/b/c/d/e/f/g", true}, {string(bytes.Repeat([]byte("界"), 85)), true}, // Each path component must be <= 255 bytes long. {string(bytes.Repeat([]byte("界"), 280)), false}, {`/p/q/r/s/t`, true}, } dir := t.TempDir() // Instantiate posix object to manage a disk fs, err := newLocalXLStorage(dir) if err != nil { t.Fatal(err) } // Create volume to use in conjunction with other StorageAPI's file API(s)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Nov 29 06:35:16 UTC 2023 - 2.8K bytes - Viewed (0) -
cmd/xl-storage_unix_test.go
func getUmask() int { mask := syscall.Umask(0) syscall.Umask(mask) return mask } // Tests if the directory and file creations happen with proper umask. func TestIsValidUmaskVol(t *testing.T) { tmpPath := t.TempDir() testCases := []struct { volName string expectedUmask int }{ {"is-this-valid", getUmask()}, } testCase := testCases[0] // Initialize a new xlStorage layer.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 3.4K bytes - Viewed (0)