Module

Node.FS.Constants

Package
purescript-node-fs
Repository
purescript-node/purescript-node-fs

#AccessMode Source

data AccessMode

the mode parameter passed to access and accessSync.

#f_OK Source

f_OK :: AccessMode

the file is visible to the calling process. This is useful for determining if a file exists, but says nothing about rwx permissions. Default if no mode is specified.

#r_OK Source

r_OK :: AccessMode

the file can be read by the calling process.

#w_OK Source

w_OK :: AccessMode

the file can be written by the calling process.

#x_OK Source

x_OK :: AccessMode

the file can be executed by the calling process. This has no effect on Windows (will behave like fs.constants.F_OK).

#CopyMode Source

data CopyMode

A constant used in copyFile.

Instances

#copyFile_EXCL Source

copyFile_EXCL :: CopyMode

If present, the copy operation will fail with an error if the destination path already exists.

#copyFile_FICLONE Source

copyFile_FICLONE :: CopyMode

If present, the copy operation will attempt to create a copy-on-write reflink. If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used.

#copyFile_FICLONE_FORCE Source

copyFile_FICLONE_FORCE :: CopyMode
If present, the copy operation will attempt to create a copy-on-write reflink. If the underlying platform does not support copy-on-write, then the operation will fail with an error.

#defaultCopyMode Source

#fileFlagsToNode Source

fileFlagsToNode :: FileFlags -> String

Convert a FileFlags to a String in the format expected by the Node.js filesystem API.