- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 65 for LSTAT (0.06 sec)
-
src/os/stat.go
func Stat(name string) (FileInfo, error) { testlog.Stat(name) return statNolog(name) } // Lstat returns a [FileInfo] describing the named file. // If the file is a symbolic link, the returned FileInfo // describes the symbolic link. Lstat makes no attempt to follow the link. // If there is an error, it will be of type [*PathError]. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 973 bytes - Viewed (0) -
src/os/stat_test.go
} // testStatAndLstat verifies that all os.Stat, os.Lstat os.File.Stat and os.Readdir work. func testStatAndLstat(t *testing.T, path string, params testStatAndLstatParams) { // test os.Stat sfi, err := os.Stat(path) if err != nil { t.Error(err) return } params.statCheck(t, path, sfi) // test os.Lstat lsfi, err := os.Lstat(path) if err != nil { t.Error(err) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:38:03 UTC 2024 - 7.8K bytes - Viewed (0) -
src/os/removeall_test.go
for _, s := range []string{fpath, path + "/zzz"} { if _, err = Lstat(s); err == nil { t.Fatalf("Lstat %q succeeded after partial RemoveAll", s) } } } if err = RemoveAll(path); err != nil { t.Fatalf("RemoveAll %q after partial RemoveAll: %s", path, err) } if _, err = Lstat(path); err == nil { t.Fatalf("Lstat %q succeeded after RemoveAll (final)", path) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:21:29 UTC 2024 - 12.3K bytes - Viewed (0) -
src/os/stat_unix.go
} // lstatNolog lstats a file with no test logging. func lstatNolog(name string) (FileInfo, error) { var fs fileStat err := ignoringEINTR(func() error { return syscall.Lstat(name, &fs.sys) }) if err != nil { return nil, &PathError{Op: "lstat", Path: name, Err: err} } fillFileStatFromSys(&fs, name) return &fs, nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:38:03 UTC 2024 - 1.2K bytes - Viewed (0) -
cmd/os-instrumented.go
defer updateOSMetrics(osMetricOpenFileDirectIO, name)(err) return disk.OpenFileDirectIO(name, flag, perm) } // Lstat captures time taken to call os.Lstat func Lstat(name string) (info os.FileInfo, err error) { defer updateOSMetrics(osMetricLstat, name)(err) return os.Lstat(name) } // Remove captures time taken to call os.Remove func Remove(deletePath string) (err error) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 15 01:09:38 UTC 2024 - 6.3K bytes - Viewed (0) -
src/cmd/go/internal/fsys/fsys.go
Trace("Walk", root) info, err := Lstat(root) if err != nil { err = walkFn(root, nil, err) } else { err = walk(root, info, walkFn) } if err == filepath.SkipDir { return nil } return err } // Lstat implements a version of os.Lstat that operates on the overlay filesystem. func Lstat(path string) (fs.FileInfo, error) { Trace("Lstat", path) return overlayStat(path, os.Lstat, "lstat")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:35:34 UTC 2024 - 22.7K bytes - Viewed (0) -
src/os/stat_windows.go
func statNolog(name string) (FileInfo, error) { return stat("Stat", name, true) } // lstatNolog implements Lstat for Windows. func lstatNolog(name string) (FileInfo, error) { followSurrogates := false if name != "" && IsPathSeparator(name[len(name)-1]) { // We try to implement POSIX semantics for Lstat path resolution // (per https://pubs.opengroup.org/onlinepubs/9699919799.2013edition/basedefs/V1_chap04.html#tag_04_12):
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 5.2K bytes - Viewed (0) -
src/path/filepath/path.go
// // Walk calls the function with a non-nil err argument in two cases. // // First, if an [os.Lstat] on the root directory or any directory or file // in the tree fails, Walk calls the function with path set to that // directory or file's path, info set to nil, and err set to the error // from os.Lstat. // // Second, if a directory's Readdirnames method fails, Walk calls the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 15.5K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/os/61893.md
On Windows, the mode bits reported by [Lstat] and [Stat] for reparse points changed. Mount points no longer have [ModeSymlink] set, and reparse points that are not symlinks, Unix sockets, or dedup files now always have [ModeIrregular] set. This behavior is controlled by the `winsymlink` setting. For Go 1.23, it defaults to `winsymlink=1`.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 20:57:18 UTC 2024 - 386 bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/sftp/SFTPServer.groovy
void allowInit() { expectations << new SftpAllow(SftpConstants.SSH_FXP_INIT) } void expectLstat(String path) { expectations << new SftpExpectOnePath(SftpConstants.SSH_FXP_LSTAT, "LSTAT", path) } void expectMetadataRetrieve(String path) { expectLstat(path) } void expectOpen(String path) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 17.1K bytes - Viewed (0)