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.
lstat
1 parent 133d602 commit c9e96daCopy full SHA for c9e96da
src/index.ts
@@ -95,6 +95,11 @@ export const stat = quansync({
95
> &
96
QuansyncFn<Stats | BigIntStats, [path: PathLike, opts?: StatOptions]>
97
98
+export const lstat = quansync({
99
+ sync: (path: PathLike, options) => fs.lstatSync(path, options),
100
+ async: (path, options) => fs.promises.lstat(path, options),
101
+}) as typeof stat
102
+
103
/**
104
* @link https://nodejs.org/api/fs.html#fspromisescpsrc-dest-options
105
*/
0 commit comments