Function lrs::file::create_file

Creates a file.

Syntax

fn create_file<P>(path: P, ty: Type, mode: Mode) -> Result<(), Errno>
    where P: ToCString,

Arguments

NameDescription
path

The path at which the file will be created.

ty

The type of the new file.

mode

The mode of the new file.

Remarks

The type must be either File, FIFO, or Socket.

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

See also