shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
unlink
Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs
unlinks a file or directory. The directory can have contents. If the path does not exist, silently does nothing. Like rm -rf (async)
Params
- path*-String
The file/directory path to delete
Return
- -Promise
A promise that will be resolved when the unlink is completed
Example
import { unlink } from '@blackbyte/sugar/fs';
await unlink('my/cool/file.json').then(() => {
// do something on complete...
});Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space