Module Node.Fs
Node FS API
see https://blogs.janestreet.com/a-and-a/ refernce documentation
val readdirSync : string -> string arrayMost fs functions let you omit the callback argument. If you do, a default callback is used that rethrows errors. To get a trace to the original call site, set the `NODE_DEBUG` environment variable.
val renameSync : string -> string -> unittype fd = private inttype path = stringThe relative path to a filename can be used. Remember, however, that this path will be relative to process.cwd().
module Watch : sig ... endval ftruncateSync : fd -> int -> unitval truncateSync : string -> int -> unitval chownSync : string -> uid:int -> gid:int -> unitval fchownSync : fd -> uid:int -> gid:int -> unitval readlinkSync : string -> stringval unlinkSync : string -> unitval rmdirSync : string -> unitval openSync :
path ->
[ `Read
| `Read_write
| `Read_write_sync
| `Write
| `Write_fail_if_exists
| `Write_read
| `Write_read_fail_if_exists
| `Append
| `Append_fail_if_exists
| `Append_read
| `Append_read_fail_if_exists ] ->
unittype encoding = [| `hex| `utf8| `ascii| `latin1| `base64| `ucs2| `base64| `binary| `utf16le ]val readFileSync : string -> encoding -> stringval readFileAsUtf8Sync : string -> stringval existsSync : string -> boolval writeFileSync : string -> string -> encoding -> unitval writeFileAsUtf8Sync : string -> string -> unit