- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 80 for chdir (0.04 sec)
-
src/os/path_windows_test.go
testMkdirAllAtRoot(t, volName) } func TestRemoveAllLongPathRelative(t *testing.T) { // Test that RemoveAll doesn't hang with long relative paths. // See go.dev/issue/36375. tmp := t.TempDir() chdir(t, tmp) dir := filepath.Join(tmp, "foo", "bar", strings.Repeat("a", 150), strings.Repeat("b", 150)) err := os.MkdirAll(dir, 0755) if err != nil { t.Fatal(err) } err = os.RemoveAll("foo") if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 23 16:37:32 UTC 2024 - 8K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_py39.py
@pytest.fixture(scope="module", name="client") def get_client(tmp_path_factory: pytest.TempPathFactory): tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./sql_app.db") if test_db.is_file(): # pragma: nocover test_db.unlink() # Import while creating the client to create the DB after starting the test session
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.5K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases.py
from ...utils import needs_pydanticv1 @pytest.fixture(scope="module") def client(tmp_path_factory: pytest.TempPathFactory): tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./sql_app.db") if test_db.is_file(): # pragma: nocover test_db.unlink() # Import while creating the client to create the DB after starting the test session
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.1K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py
from ...utils import needs_py310, needs_pydanticv1 @pytest.fixture(scope="module") def client(tmp_path_factory: pytest.TempPathFactory): tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./sql_app.db") if test_db.is_file(): # pragma: nocover test_db.unlink() # Import while creating the client to create the DB after starting the test session
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.5K bytes - Viewed (0) -
pkg/bootstrap/config_test.go
t.Setenv(IstioMetaPrefix+"OWNER", inputOwner) t.Setenv(IstioMetaPrefix+"WORKLOAD_NAME", inputWorkloadName) dir, _ := os.Getwd() defer os.Chdir(dir) // prepare a pod label file tempDir := t.TempDir() os.Chdir(tempDir) os.MkdirAll("./etc/istio/pod/", os.ModePerm) os.WriteFile(constants.PodInfoLabelsPath, []byte(`istio-locality="region.zone.subzone"`), 0o600)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 9.1K bytes - Viewed (0) -
src/os/file.go
return err } return Chmod(name, fi.Mode()|ModeSticky) } // Chdir changes the current working directory to the named directory. // If there is an error, it will be of type *PathError. func Chdir(dir string) error { if e := syscall.Chdir(dir); e != nil { testlog.Open(dir) // observe likely non-existent directory return &PathError{Op: "chdir", Path: dir, Err: e} } if runtime.GOOS == "windows" { getwdCache.Lock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:37 UTC 2024 - 25.4K bytes - Viewed (0) -
src/path/filepath/match_test.go
t.Error(err) } } // test relative paths wd, err := os.Getwd() if err != nil { t.Fatal(err) } err = os.Chdir(tmpDir) if err != nil { t.Fatal(err) } defer func() { err := os.Chdir(wd) if err != nil { t.Fatal(err) } }() for _, test := range tests { err := test.globRel("") if err != nil { t.Error(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:38:19 UTC 2024 - 8.6K bytes - Viewed (0) -
src/syscall/syscall_plan9.go
r0, _, e = Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(namep)), oldptr, 0) } if int32(r0) == -1 { err = e } return } func Fchdir(fd int) (err error) { path, err := Fd2path(fd) if err != nil { return } return Chdir(path) } type Timespec struct { Sec int32 Nsec int32 } type Timeval struct { Sec int32 Usec int32 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.4K bytes - Viewed (0) -
src/cmd/go/main.go
// // 2. A toolchain switch later on reinvokes the new go command with the same arguments. // The parent toolchain has already done the chdir; the child must not try to do it again. func handleChdirFlag() { _, used := lookupCmd(os.Args[1:]) used++ // because of [1:] if used >= len(os.Args) { return } var dir string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:09:11 UTC 2024 - 10K bytes - Viewed (0) -
src/path/filepath/path_windows_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 20:38:54 UTC 2024 - 19.6K bytes - Viewed (0)