Creates a file.
fn create_file<P>(path: P, ty: Type, mode: Mode) -> Result<(), Errno>
where P: ToCString,| Name | Description |
|---|---|
| path | The path at which the file will be created. |
| ty | The type of the new file. |
| mode | The mode of the new file. |
The type must be either File, FIFO, or Socket.
If the path is relative, it will be interpreted relative to the current working directory.