Struct ::filesystem::File

Represents an open file

Methods

fn open(path: String) -> Result

Open a file (with normal user permissions)

fn open_as_root(path: String) -> Result

Open a file as root

Open a file relative to the config directory.

This is generally safe (as long as the file exists in the config directory)

Read the entire file as a string

Read the entire file as bytes

Protocols

protocol string_debug
println("{:?}", value)

Allows the value to be debug printed.