Pike v8.1 release 6

Method rm()


Method rm

int rm(string f)

Description

Remove a file or directory.

Returns

Returns 0 (zero) on failure, 1 otherwise.

Note

May fail with errno() set to EISDIR or ENOTDIR if the file has changed to a directory during the call or the reverse.

See also

Stdio.File()->unlinkat(), mkdir(), Stdio.recursive_rm()