Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,311 for _mkdir (0.14 sec)

  1. cmd/kubeadm/app/phases/upgrade/postupgrade_test.go

    	os.Chmod(tmpdir, 0766)
    
    	subDir := filepath.Join(tmpdir, "expired")
    	if err := os.Mkdir(subDir, 0766); err != nil {
    		t.Fatalf("Failed to create backup directory %s: %v", subDir, err)
    	}
    
    	certPath := filepath.Join(subDir, constants.APIServerCertName)
    	certFile, err := os.OpenFile(certPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666)
    	if err != nil {
    		t.Fatalf("Failed to create cert file %s: %v", certPath, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 11:40:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. cluster/gce/gci/mounter/stage-upload.sh

    DOCKER_IMAGE=docker://$2
    MOUNTER_ACI_IMAGE=gci-mounter-${MOUNTER_VERSION}.aci
    MOUNTER_GCS_DIR=gs://kubernetes-release/gci-mounter/
    
    TMPDIR=/tmp
    # Setup a working directory
    DOWNLOAD_DIR=$(mktemp --tmpdir=${TMPDIR} -d gci-mounter-build.XXXXXXXXXX)
    
    # Setup a staging directory
    STAGING_DIR=$(mktemp --tmpdir=${TMPDIR} -d gci-mounter-staging.XXXXXXXXXX)
    ACI_DIR=${STAGING_DIR}/gci-mounter
    CWD=${PWD}
    
    # Cleanup the temporary directories
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 23 18:27:20 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/build_GOTMPDIR.txt

    [!GOOS:windows] env GOCACHE=$WORK/gocache
    [GOOS:windows] env GOCACHE=$WORK\gocache
    
    # 'go build' should use GOTMPDIR if set.
    [!GOOS:windows] env GOTMPDIR=$WORK/my-favorite-tmpdir
    [GOOS:windows] env GOTMPDIR=$WORK\my-favorite-tmpdir
    mkdir $GOTMPDIR
    go build -x hello.go
    stderr ^WORK=.*my-favorite-tmpdir
    
    # Make GOTMPDIR a regular file. This prevents the creation of work directories,
    # so we can check that certain commands don't create them.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  4. src/os/stat_test.go

    	}
    }
    
    func TestDirAndSymlinkStats(t *testing.T) {
    	testenv.MustHaveSymlink(t)
    	t.Parallel()
    
    	tmpdir := t.TempDir()
    	dir := filepath.Join(tmpdir, "dir")
    	if err := os.Mkdir(dir, 0777); err != nil {
    		t.Fatal(err)
    	}
    	testDirStats(t, dir)
    
    	dirlink := filepath.Join(tmpdir, "link")
    	if err := os.Symlink(dir, dirlink); err != nil {
    		t.Fatal(err)
    	}
    	testSymlinkStats(t, dirlink, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:38:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractDirectorySensitivityIntegrationSpec.groovy

            createParameterizedTransformWithSensitivity(DirectorySensitivity.DEFAULT)
            file('augmented').mkdir()
            file('augmented/a').mkdir()
            file('augmented/b').mkdir()
            file('augmented/b/b1').createFile()
    
            file('bar/foo').mkdir()
            file('bar/foo/c').mkdir()
            file('bar/foo/d').mkdir()
            file('bar/foo/d1').createFile()
    
            when:
            execute('showTransformedFiles')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/tasks/GenerateScriptPluginAdapters.kt

            """.trimIndent().trim() + "\n"
        )
    }
    
    
    private
    fun packageDir(outputDir: File, packageName: String) =
        outputDir.mkdir(packageName.replace('.', '/'))
    
    
    private
    fun File.mkdir(relative: String) =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. hack/verify-vendor.sh

      else
        echo "Removing ${_tmpdir}"
        rm -rf "${_tmpdir}"
      fi
    }
    kube::util::trap_add cleanup EXIT
    
    # Copy the contents of the kube directory into the nice clean place (which is NOT shaped like a GOPATH)
    _kubetmp="${_tmpdir}/kubernetes"
    mkdir -p "${_kubetmp}"
    tar --exclude=.git --exclude="./_*" -c . | (cd "${_kubetmp}" && tar xf -)
    
    pushd "${_kubetmp}" > /dev/null 2>&1
      # Destroy deps in the copy of the kube tree
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 05:44:45 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/initialization/layout/BuildLayoutFactoryTest.groovy

            def locator = buildLayoutFactoryFor()
    
            and: "temporary tree created out of the Gradle build tree"
            def tmpDir = File.createTempFile("stop-", "-at").canonicalFile
            def stopAt = new File(tmpDir, 'stopAt')
            def currentDir = new File(new File(stopAt, "intermediate"), 'current')
            currentDir.mkdirs()
    
            expect:
            def layout = locator.getLayoutFor(currentDir, true)
            layout.rootDirectory == currentDir
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 09:18:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalInputsIntegrationTest.groovy

        def setup() {
            setupTaskSources()
            buildFile << """
        task incremental(type: IncrementalTask) {
            inputDir = project.mkdir('inputs')
            outputDir = project.mkdir('outputs')
            prop = 'foo'
        }
    """
            file('inputs/file0.txt') << "inputFile0"
            file('inputs/file1.txt') << "inputFile1"
            file('inputs/file2.txt') << "inputFile2"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 23 12:52:29 UTC 2022
    - 27.8K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_custom_docs_ui/test_tutorial002.py

    
    @pytest.fixture(scope="module")
    def client():
        static_dir: Path = Path(os.getcwd()) / "static"
        print(static_dir)
        static_dir.mkdir(exist_ok=True)
        from docs_src.custom_docs_ui.tutorial002 import app
    
        with TestClient(app) as client:
            yield client
        static_dir.rmdir()
    
    
    def test_swagger_ui_html(client: TestClient):
        response = client.get("/docs")
        assert response.status_code == 200, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Aug 19 19:54:04 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top