- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 177 for chdir (0.39 sec)
-
src/os/file_plan9.go
dir = "/tmp" } return dir } // Chdir changes the current working directory to the file, // which must be a directory. // If there is an error, it will be of type *PathError. func (f *File) Chdir() error { if err := f.incref("chdir"); err != nil { return err } defer f.decref() if e := syscall.Fchdir(f.fd); e != nil { return &PathError{Op: "chdir", Path: f.name, Err: e} } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:35:30 UTC 2024 - 16K bytes - Viewed (0) -
src/syscall/exec_libc.go
} err1 = setgid(uintptr(cred.Gid)) if err1 != 0 { goto childerror } err1 = setuid(uintptr(cred.Uid)) if err1 != 0 { goto childerror } } // Chdir if dir != nil { err1 = chdir(uintptr(unsafe.Pointer(dir))) if err1 != 0 { goto childerror } } // Pass 1: look for fd[i] < i and move those up above len(fd)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 29 18:51:35 UTC 2023 - 8.2K bytes - Viewed (0) -
test/fixedbugs/bug369.go
// Test that compiling with optimization turned on produces faster code. package main import ( "fmt" "io/ioutil" "os" "os/exec" "path/filepath" ) func main() { err := os.Chdir(filepath.Join(".", "fixedbugs", "bug369.dir")) check(err) tmpDir, err := ioutil.TempDir("", "bug369") check(err) defer os.RemoveAll(tmpDir) tmp := func(name string) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.6K bytes - Viewed (0) -
src/runtime/syscall_aix.go
package runtime import "unsafe" // This file handles some syscalls from the syscall package // Especially, syscalls use during forkAndExecInChild which must not split the stack //go:cgo_import_dynamic libc_chdir chdir "libc.a/shr_64.o" //go:cgo_import_dynamic libc_chroot chroot "libc.a/shr_64.o" //go:cgo_import_dynamic libc_dup2 dup2 "libc.a/shr_64.o" //go:cgo_import_dynamic libc_execve execve "libc.a/shr_64.o"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 6.3K bytes - Viewed (0) -
src/os/os_test.go
if err != nil { t.Fatalf("Getwd: %s", err) } defer Chdir(wd) fd, err := Open(".") if err != nil { t.Fatalf("Open .: %s", err) } defer fd.Close() if err := Chdir("/"); err != nil { t.Fatalf("Chdir /: %s", err) } if err := fd.Chdir(); err != nil { t.Fatalf("fd.Chdir: %s", err) } wdNew, err := Getwd() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0) -
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) -
src/cmd/go/internal/work/build_test.go
cfg.BuildContext.GOPATH = oldGopath os.Chdir(cwd) err := os.RemoveAll(tmpGopath) if err != nil { t.Error(err) } }() root := filepath.Join(tmpGopath, "src", data.rootedAt) err = os.MkdirAll(root, 0755) if err != nil { t.Fatal(err) } cfg.BuildContext.GOPATH = tmpGopath os.Chdir(root) } computed, err := libname(data.args, data.pkgs)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 8.3K 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)