We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa31eeb commit 753b6ddCopy full SHA for 753b6dd
paths.go
@@ -76,6 +76,13 @@ func (p *Path) Stat() (os.FileInfo, error) {
76
return os.Stat(p.path)
77
}
78
79
+// Lstat returns a FileInfo like stat, but when the path points to a
80
+// symlink, returns information about the symlink itself instead of the
81
+// target like Stat().
82
+func (p *Path) Lstat() (os.FileInfo, error) {
83
+ return os.Lstat(p.path)
84
+}
85
+
86
// Clone create a copy of the Path object
87
func (p *Path) Clone() *Path {
88
return New(p.path)
0 commit comments