- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 98 for sameFile (0.14 sec)
-
src/os/file_unix.go
if ofi, err := Lstat(oldname); err != nil { if pe, ok := err.(*PathError); ok { err = pe.Err } return &LinkError{"rename", oldname, newname, err} } else if newname == oldname || !SameFile(fi, ofi) { return &LinkError{"rename", oldname, newname, syscall.EEXIST} } } err = ignoringEINTR(func() error { return syscall.Rename(oldname, newname) }) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:52:34 UTC 2024 - 14.9K bytes - Viewed (0) -
src/cmd/go/internal/cfg/cfg.go
func isSameDir(dir1, dir2 string) bool { if dir1 == dir2 { return true } info1, err1 := os.Stat(dir1) info2, err2 := os.Stat(dir2) return err1 == nil && err2 == nil && os.SameFile(info1, info2) } // isGOROOT reports whether path looks like a GOROOT. // // It does this by looking for the path/pkg/tool directory, // which is necessary for useful operation of the cmd/go tool,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.3K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_linux.go
} t, err := os.Lstat(bindMountTarget) if err != nil { return false, fmt.Errorf("lstat %s failed: %s", bindMountTarget, err) } if !os.SameFile(s, t) { return false, nil } return true, nil } func getSubpathBindTarget(subpath Subpath) string { // containerName is DNS label, i.e. safe as a directory name.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 12 14:09:11 UTC 2022 - 21.4K bytes - Viewed (0) -
src/path/filepath/path_test.go
continue } abspath, err := filepath.Abs(path) if err != nil { t.Errorf("Abs(%q) error: %v", path, err) continue } absinfo, err := os.Stat(abspath) if err != nil || !os.SameFile(absinfo, info) { t.Errorf("Abs(%q)=%q, not the same file", path, abspath) } if !filepath.IsAbs(abspath) { t.Errorf("Abs(%q)=%q, not an absolute path", path, abspath) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:38:19 UTC 2024 - 47.1K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_linux_test.go
}, expectError: false, expectAction: []mount.FakeAction{{Action: "unmount"}}, mountExists: false, }, { name: "subpath-mount-already-exists-with-samefile", prepare: func(base string) ([]string, string, string, error) { volpath, subpathMount := getTestPaths(base) mounts := []string{subpathMount} subpathMountRoot := filepath.Dir(subpathMount)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 10 16:52:55 UTC 2021 - 37.3K bytes - Viewed (0) -
api/except.txt
pkg os, func Lstat(string) (FileInfo, error) pkg os, func Mkdir(string, FileMode) error pkg os, func MkdirAll(string, FileMode) error pkg os, func OpenFile(string, int, FileMode) (*File, error) pkg os, func SameFile(FileInfo, FileInfo) bool pkg os, func Stat(string) (FileInfo, error) pkg os, method (*File) Chmod(FileMode) error pkg os, method (*File) Readdir(int) ([]FileInfo, error) pkg os, method (*File) Stat() (FileInfo, error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:13:30 UTC 2023 - 34.6K bytes - Viewed (0) -
api/go1.4.txt
pkg syscall (windows-amd64), type ProcessEntry32 struct, Threads uint32 pkg syscall (windows-amd64), type ProcessEntry32 struct, Usage uint32 # CL 127740043 os: make SameFile handle paths like c:a.txt properly, Alex Brainman <******@****.***> pkg syscall (windows-386), func FullPath(string) (string, error) pkg syscall (windows-amd64), func FullPath(string) (string, error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 12 03:01:01 UTC 2014 - 34K bytes - Viewed (0) -
src/net/http/fs_test.go
f, err := d.Open(name) if err != nil { t.Fatalf("open of %s: %v", name, err) } defer f.Close() gfi, err := f.Stat() if err != nil { t.Fatalf("stat of %s: %v", name, err) } if !os.SameFile(gfi, wfi) { t.Errorf("%s got different file", name) } } test(Dir("/etc/"), "/hosts") test(Dir("/etc/"), "hosts") test(Dir("/etc/"), "../../../../hosts") test(Dir("/etc"), "/hosts")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 49.9K bytes - Viewed (0) -
cmd/xl-storage.go
s.RUnlock() return diskID, nil } s.RUnlock() fi, err := s.checkFormatJSON() if err != nil { return "", err } if xioutil.SameFile(fi, fileInfo) && diskID != "" { s.Lock() // If the file has not changed, just return the cached diskID information. s.formatLastCheck = time.Now() s.Unlock() return diskID, nil }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 85.3K bytes - Viewed (2) -
platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/DiagnosticToProblemListenerTest.groovy
name >> "SomeFile.java" } diagnostic.lineNumber >> 1 diagnostic.columnNumber | diagnostic.startPosition | diagnostic.endPosition >> Diagnostic.NOPOS when: diagnosticToProblemListener.buildProblem(diagnostic, spec) then: 1 * spec.fileLocation("SomeFile.java") 1 * spec.lineInFileLocation("SomeFile.java", 1)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 13:58:13 UTC 2024 - 6.2K bytes - Viewed (0)