- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for mkdtemp (0.44 sec)
-
src/os/tempfile.go
// The directory is created with mode 0o700 (before umask). // If dir is the empty string, MkdirTemp uses the default directory for temporary files, as returned by TempDir. // Multiple programs or goroutines calling MkdirTemp simultaneously will not choose the same directory. // It is the caller's responsibility to remove the directory when it is no longer needed. func MkdirTemp(dir, pattern string) (string, error) { if dir == "" { dir = TempDir() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 18:04:39 UTC 2024 - 3.9K bytes - Viewed (0) -
hack/update-mocks.sh
# pick a tempfile path for writing to tmp=$(mktemp) kube::util::trap_add "rm -f ${tmp:?}" EXIT git_grep -l -z "${GENERATED_MOCK_FILE_REGEX}" | xargs -0 rm -f echo 'executing go generate command on below files' git_grep -l -z "//go:generate mockgen" | while read -r -d $'\0' file; do echo "- ${file}" temp_file_name="$(kube::realpath "$(mktemp -t "$(basename "$0").XXXXXX")")"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 4.4K bytes - Viewed (0) -
hack/lib/etcd.sh
printf '%s\n' "${@}" | awk -F . '{ printf("%d%03d%03d\n", $1, $2, $3) }' } kube::etcd::start() { # validate before running kube::etcd::validate # Start etcd ETCD_DIR=${ETCD_DIR:-$(mktemp -d 2>/dev/null || mktemp -d -t test-etcd.XXXXXX)} if [[ -d "${ARTIFACTS:-}" ]]; then ETCD_LOGFILE="${ARTIFACTS}/etcd.$(uname -n).$(id -un).log.DEBUG.$(date +%Y%m%d-%H%M%S).$$" else ETCD_LOGFILE=${ETCD_LOGFILE:-"/dev/null"}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 03:36:35 UTC 2024 - 6.8K bytes - Viewed (0) -
hack/verify-openapi-docs-urls.sh
set -o pipefail KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. source "${KUBE_ROOT}/hack/lib/init.sh" SPECROOT="${KUBE_ROOT}/api/openapi-spec" SPECV3PATH="${SPECROOT}/v3" _tmpdir="$(kube::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")" mkdir -p "${_tmpdir}" trap 'rm -rf ${_tmpdir}' EXIT SIGINT trap "echo Aborted; exit;" SIGINT SIGTERM TMP_URLS="${_tmpdir}/docs_urls.txt" touch "${TMP_URLS}"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 05:44:44 UTC 2024 - 1.7K bytes - Viewed (0) -
ci/official/utilities/setup_docker.sh
# The container is not cleaned up automatically! Remove it with: # docker rm tf if ! docker container inspect tf >/dev/null 2>&1 ; then # Pass all existing TFCI_ variables into the Docker container env_file=$(mktemp) env | grep ^TFCI_ > "$env_file" docker run $TFCI_DOCKER_ARGS --name tf -w "$TFCI_GIT_DIR" -itd --rm \ -v "$TFCI_GIT_DIR:$TFCI_GIT_DIR" \ --env-file "$env_file" \ "$TFCI_DOCKER_IMAGE" \ bash
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 18:22:06 UTC 2024 - 1.9K bytes - Viewed (0) -
.github/workflows/maven_build_itself.yml
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Jun 03 17:58:28 UTC 2024 - 2.8K bytes - Viewed (0) -
samples/bookinfo/platform/kube/cleanup.sh
kubectl delete -n "${NAMESPACE}" "$resource"; done done kubectl delete -n "${NAMESPACE}" -f "$SCRIPTDIR/bookinfo-versions.yaml" >/dev/null 2>&1 fi OUTPUT=$(mktemp) export OUTPUT echo "Application cleanup may take up to one minute" kubectl delete -n "${NAMESPACE}" -f "$SCRIPTDIR/bookinfo.yaml" > "${OUTPUT}" 2>&1 ret=$? function cleanup() { rm -f "${OUTPUT}" }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:18 UTC 2024 - 2.5K bytes - Viewed (0) -
ci/official/upload.sh
# "gsutil -m rsync" runs in parallel. # "gsutil rsync -r" is recursive and makes directories work. # "gsutil rsync -d" is "sync and delete files from destination if not present in source" DOWNLOADS="$(mktemp -d)" mkdir -p "$DOWNLOADS" gsutil -m rsync -r "$TFCI_ARTIFACT_STAGING_GCS_URI" "$DOWNLOADS" ls "$DOWNLOADS" # Upload all build artifacts to e.g. gs://tensorflow/versions/2.16.0-rc1 (releases) or
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 20:52:12 UTC 2024 - 2.8K bytes - Viewed (0) -
prow/release-commit.sh
TAG=$(git rev-parse HEAD) VERSION="${NEXT_VERSION}-alpha.${TAG}" # In CI we want to store the outputs to artifacts, which will preserve the build # If not specified, we can just create a temporary directory WORK_DIR="$(mktemp -d)/build" mkdir -p "${WORK_DIR}" MANIFEST=$(cat <<EOF version: ${VERSION} docker: ${DOCKER_HUB} directory: ${WORK_DIR} ignoreVulnerability: true dependencies: ${DEPENDENCIES:-$(cat <<EOD istio:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 18:57:28 UTC 2024 - 3.1K bytes - Viewed (0) -
src/os/example_test.go
} } func ExampleMkdirTemp() { dir, err := os.MkdirTemp("", "example") if err != nil { log.Fatal(err) } defer os.RemoveAll(dir) // clean up file := filepath.Join(dir, "tmpfile") if err := os.WriteFile(file, []byte("content"), 0666); err != nil { log.Fatal(err) } } func ExampleMkdirTemp_suffix() { logsDir, err := os.MkdirTemp("", "*-logs") if err != nil { log.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 17:35:49 UTC 2024 - 8.4K bytes - Viewed (0)