Node.FS.Constants
- Package
- purescript-node-fs
- Repository
- purescript-node/purescript-node-fs
#AccessMode Source
data AccessModethe mode parameter passed to access and accessSync.
#f_OK Source
f_OK :: AccessModethe 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 :: AccessModethe file can be read by the calling process.
#w_OK Source
w_OK :: AccessModethe file can be written by the calling process.
#x_OK Source
x_OK :: AccessModethe file can be executed by the calling process. This has no effect on Windows (will behave like fs.constants.F_OK).
#copyFile_EXCL Source
copyFile_EXCL :: CopyModeIf present, the copy operation will fail with an error if the destination path already exists.
#copyFile_FICLONE Source
copyFile_FICLONE :: CopyModeIf 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 :: CopyModeIf 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.
#fileFlagsToNode Source
fileFlagsToNode :: FileFlags -> StringConvert a FileFlags to a String in the format expected by the Node.js
filesystem API.