Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 174 for tempdir (0.11 sec)

  1. src/os/removeall_test.go

    	prevDir, err := Getwd()
    	if err != nil {
    		t.Fatalf("Could not get wd: %s", err)
    	}
    	tempDir, err := MkdirTemp("", "TestRemoveAllDot-")
    	if err != nil {
    		t.Fatalf("Could not create TempDir: %s", err)
    	}
    	defer RemoveAll(tempDir)
    
    	err = Chdir(tempDir)
    	if err != nil {
    		t.Fatalf("Could not chdir to tempdir: %s", err)
    	}
    
    	err = RemoveAll(".")
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:29 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. cni/pkg/install/install_test.go

    			// Create temp directory for files
    			tempDir := t.TempDir()
    
    			// Create existing config files if specified in test case
    			for srcFilename, targetFilename := range c.existingConfFiles {
    				if err := file.AtomicCopy(filepath.Join("testdata", srcFilename), tempDir, targetFilename); err != nil {
    					t.Fatal(err)
    				}
    			}
    
    			cfg := &config.InstallConfig{
    				MountedCNINetDir: tempDir,
    				CNIConfName:      c.cniConfName,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. cni/pkg/install/cniconfig_test.go

    				// Create temp directory for files
    				tempDir := t.TempDir()
    
    				// Create existing config files if specified in test case
    				for srcFilename, targetFilename := range c.existingConfFiles {
    					if err := file.AtomicCopy(filepath.Join("testdata", srcFilename), tempDir, targetFilename); err != nil {
    						t.Fatal(err)
    					}
    				}
    
    				cfg.MountedCNINetDir = tempDir
    
    				var expectedFilepath string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. src/cmd/link/link_test.go

    	}
    
    	tmpdir := t.TempDir()
    
    	xSrc := filepath.Join(tmpdir, "x.go")
    	pSrc := filepath.Join(tmpdir, "p.go")
    	xObj := filepath.Join(tmpdir, "x.o")
    	pObj := filepath.Join(tmpdir, "p.o")
    	exe := filepath.Join(tmpdir, "x.exe")
    	importcfgfile := filepath.Join(tmpdir, "importcfg")
    	testenv.WriteImportcfg(t, importcfgfile, map[string]string{"p": pObj})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceTest.groovy

            HttpStatus.SC_HTTP_VERSION_NOT_SUPPORTED,
            511 // network authentication required
        ]
    
        @Rule
        HttpServer server = new HttpServer()
        @Rule
        TestNameTestDirectoryProvider tempDir = new TestNameTestDirectoryProvider(getClass())
    
        BuildCacheServiceFactory.Describer buildCacheDescriber
        HttpClientHelper.Factory httpClientHelperFactory = HttpClientHelper.Factory.createFactory(new DocumentationRegistry())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  6. tools/bug-report/pkg/bugreport/bugreport.go

    	}
    	outPath := filepath.Join(outDir, "bug-report.tar.gz")
    
    	if !config.DryRun {
    		common.LogAndPrintf("Creating an archive at %s.\n", outPath)
    		archiveDir := archive.DirToArchive(tempDir)
    		if tempDir != "" {
    			archiveDir = tempDir
    		}
    		curTime = time.Now()
    		err := archive.Create(archiveDir, outPath)
    		fmt.Printf("Time used for creating the tar file is %v.\n", time.Since(curTime))
    		if err != nil {
    			return err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 20:57:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            final File tempDirFile = (File) LaServletContextUtil.getServletContext().getAttribute(CONTEXT_TEMPDIR_KEY);
            String tempDir = tempDirFile.getAbsolutePath();
            if (tempDir == null || tempDir.length() == 0) {
                tempDir = System.getProperty(JAVA_IO_TMPDIR_KEY);
            }
            return tempDir;
        }
    
        // ===================================================================================
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  8. src/path/filepath/path_test.go

    	tmpdir := t.TempDir()
    
    	wd, err := os.Getwd()
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.Chdir(wd)
    
    	err = os.Chdir(tmpdir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	err = mklink(tmpdir, "link")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var visited []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractor.java

        }
    
        public void setOutputExtension(final String outputExtension) {
            this.outputExtension = outputExtension;
        }
    
        public void setTempDir(final File tempDir) {
            this.tempDir = tempDir;
        }
    
        public void setCommand(final String command) {
            this.command = command;
        }
    
        public void setExecutionTimeout(final long executionTimeout) {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTestKitIntegrationTest.groovy

    import org.gradle.testkit.runner.GradleRunner
    import org.gradle.util.internal.TextUtil
    import spock.lang.Issue
    import spock.lang.TempDir
    
    @Requires(UnitTestPreconditions.NotWindows)
    class ConfigurationCacheTestKitIntegrationTest extends AbstractConfigurationCacheIntegrationTest {
    
        @TempDir
        File jacocoDestinationDir
    
        def "reports when a TestKit build runs with a Java agent and configuration caching enabled"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top