Method lrs::file::File::rel_create_file

Creates a file at a path relative to this file.

Syntax

impl File {
    fn rel_create_file<P>(&self, path: P, ty: Type, mode: Mode) -> Result<(), Errno>
        where P: ToCString,
}

Arguments

NameDescription
path

The path to the new file.

ty

The type of the file.

mode

The mode of the file.

Remarks

If the path is relative, this file must be a directory and the path will be interpreted relative to it.

The type must be either File or FIFO or Socket.

See also