File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,11 @@ type openFileOptions = {
208208 mode ?: int ,
209209}
210210
211+ type lstatSyncOptions = {
212+ bigint ?: bool ,
213+ throwIfNoEntry ?: bool ,
214+ }
215+
211216/**
212217 * `readdirSync(path)`
213218 * Reads the contents of a directory, returning an array of strings representing
@@ -257,6 +262,16 @@ external writeFileSync: (string, Buffer.t) => unit = "writeFileSync"
257262@val @module ("node:fs" )
258263external writeFileSyncWith : (string , Buffer .t , writeFileOptions ) => unit = "writeFileSync"
259264
265+ @val @module ("node:fs" )
266+ external lstatSync : @unwrap [#String (string ) | #Buffer (Buffer .t ) | #Url (Url .t )] => Stats .t =
267+ "lstatSync"
268+
269+ @val @module ("node:fs" )
270+ external lstatSyncWith : (
271+ @unwrap [#String (string ) | #Buffer (Buffer .t ) | #Url (Url .t )],
272+ lstatSyncOptions ,
273+ ) => Stats .t = "lstatSync"
274+
260275module FileHandle = {
261276 type t = {fd : fd }
262277
You can’t perform that action at this time.
0 commit comments