<Buffer> <URL> source filename to copy
Removes files and directories (modeled on the standard POSIX utility).
Added in: v19.6.0, v18.15.0
Creates a symbolic link.
The argument is only used on Windows platforms and can be one of , , or . If the argument is not a string, Node.js will autodetect type and use or . If the does not exist, will be used. Windows junction points require the destination path to be absolute. When using , the argument will automatically be normalized to absolute path. Junction points on NTFS volumes can only point to directories.
Added in: v10.0.0
Truncates (shortens or extends the length) of the content at to bytes.
Added in: v10.0.0
If refers to a symbolic link, then the link is removed without affecting the file or directory to which that link refers. If the refers to a file path that is not a symbolic link, the file is deleted. See the POSIX documentation for more detail.
Added in: v10.0.0
Change the file system timestamps of the object referenced by .
The and arguments follow these rules:
Added in: v15.9.0, v14.18.0
Removes the directory identified by .
Using on a file (not a directory) results in the promise being rejected with an error on Windows and an error on POSIX.
To get a behavior similar to the Unix command, use with options .
Added in: v14.14.0