Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment remove

fs/file::remove


Inputs

⇥ filesystem: Block<FileSystem> (fs/filesystem::FileSystem)
⇥ path: Block<string>

Outputs

↦ completed: Block<void>
↦ error: Block<string>
↦ failed: Block<void>
↦ finished: Block<void>


Remove one file.

The file or link at path is removed: a link is removed itself, never what it points to. Directories are removed with fs/dir::remove.

completed is emitted when the file is removed. If it cannot be, failed is emitted and error contains the reason. finished is emitted in both cases.