Module
Node.FS.Sync
- Package
- purescript-node-fs
- Repository
- purescript-node/purescript-node-fs
#fdOpen Source
fdOpen :: forall eff. FilePath -> FileFlags -> Maybe FileMode -> Eff (exception :: EXCEPTION, fs :: FS | eff) FileDescriptor
Open a file synchronously. See the Node documentation for details.
#fdRead Source
fdRead :: forall eff. FileDescriptor -> Buffer -> BufferOffset -> BufferLength -> Maybe FilePosition -> Eff (buffer :: BUFFER, exception :: EXCEPTION, fs :: FS | eff) ByteCount
Read from a file synchronously. See the Node documentation for details.
#fdWrite Source
fdWrite :: forall eff. FileDescriptor -> Buffer -> BufferOffset -> BufferLength -> Maybe FilePosition -> Eff (buffer :: BUFFER, exception :: EXCEPTION, fs :: FS | eff) ByteCount
Write to a file synchronously. See the Node documentation for details.
#fdFlush Source
fdFlush :: forall eff. FileDescriptor -> Eff (exception :: EXCEPTION, fs :: FS | eff) Unit
Flush a file synchronously. See the Node documentation for details.
#fdClose Source
fdClose :: forall eff. FileDescriptor -> Eff (exception :: EXCEPTION, fs :: FS | eff) Unit
Close a file synchronously. See the Node documentation for details.