Library guide · API index and notation
This page is generated from the bundled library in this checkout. Signatures and adjacent source comments are reproduced below; the linked guide explains usage, storage, failures, and platform support.
import "std/fs/unix"
Names used in signatures
Unqualified names denote this package’s types (including other source files in the same package), language built-ins, or generic parameters such as T. Qualified names use the import aliases below. These aliases belong to the library source; import a dependency yourself to use its alias in your program.
| Alias | Package | Source file |
|---|---|---|
error |
std/platform/error |
unix.dodo |
fs |
std/fs |
unix.dodo |
linux |
std/fs/linux |
unix.dodo |
native |
std/platform/native |
unix.dodo |
open
Function · Source
Importing this extension on a non-Linux target is a build diagnostic. Permission bits include setuid/setgid/sticky and are constrained to 07777.
pub fn open(path: &native.NativeString, options: &fs.OpenOptions, mode: u32) -> fs.File!error.Error
set_mode
Function · Source
pub fn set_mode(path: &native.NativeString, mode: u32) -> void!error.Error
create_directory
Function · Source
pub fn create_directory(path: &native.NativeString, mode: u32) -> void!error.Error