File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ Breaking changes:
9
9
10
10
New features:
11
11
12
+ - Add ` lstat ` to ` Node.FS.Aff ` (#85 by @artemisSystem )
13
+
12
14
Bugfixes:
13
15
14
16
Other improvements:
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ module Node.FS.Aff
10
10
, chown
11
11
, chmod
12
12
, stat
13
+ , lstat
13
14
, link
14
15
, symlink
15
16
, readlink
@@ -147,6 +148,12 @@ chmod = toAff2 A.chmod
147
148
stat :: FilePath -> Aff Stats
148
149
stat = toAff1 A .stat
149
150
151
+ -- | Gets file or symlink statistics. `lstat` is identical to `stat`, except
152
+ -- | that if the `FilePath` is a symbolic link, then the link itself is stat-ed,
153
+ -- | not the file that it refers to.
154
+ lstat :: FilePath -> Aff Stats
155
+ lstat = toAff1 A .lstat
156
+
150
157
-- |
151
158
-- | Creates a link to an existing file.
152
159
-- |
You can’t perform that action at this time.
0 commit comments