diff --git a/CHANGELOG.md b/CHANGELOG.md index 76950ca..d0ba19d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ Breaking changes: New features: +- Add `lstat` to `Node.FS.Aff` (#85 by @artemisSystem) + Bugfixes: Other improvements: diff --git a/src/Node/FS/Aff.purs b/src/Node/FS/Aff.purs index 140352f..fa00155 100644 --- a/src/Node/FS/Aff.purs +++ b/src/Node/FS/Aff.purs @@ -10,6 +10,7 @@ module Node.FS.Aff , chown , chmod , stat + , lstat , link , symlink , readlink @@ -147,6 +148,12 @@ chmod = toAff2 A.chmod stat :: FilePath -> Aff Stats stat = toAff1 A.stat +-- | Gets file or symlink statistics. `lstat` is identical to `stat`, except +-- | that if theĀ `FilePath` is a symbolic link, then the link itself is stat-ed, +-- | not the file that it refers to. +lstat :: FilePath -> Aff Stats +lstat = toAff1 A.lstat + -- | -- | Creates a link to an existing file. -- |