Function lrs::file::remove

Removes a file.

Syntax

fn remove<P>(path: P) -> Result<(), Errno>
    where P: ToCString,

Arguments

NameDescription
path

The path of the file to be removed.

Remarks

If the path refers to a directory, the directory has to be empty.

If the path is relative, it will be interpreted relative to the current working directory.

See also