Expand description
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠟⠛⠛⠛⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ___ ___ ___
⣿⣿⣿⣿⣿⣿⡿⠟⣋⣡⣴⣶⣾⣿⡇⢸⣶⣄⠀⠀⠈⠙⠻⢿⣿⣿⣿⣿⣿⣿ |_ _/ _ \ / __|___ _ _ ___
⣿⣿⣿⣿⡿⢋⣴⣾⣿⣿⣿⣿⣿⣿⡇⢸⣿⣿⣆⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿ | | (_) | (__/ _ \ '_/ -_)
⣿⣿⣿⠏⣰⣿⣿⣿⣿⣿⣿⡿⠟⠛⠃⠘⢿⣿⣿⡀⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿ |___\___/ \___\___/_| \___|
⣿⣿⠏⣸⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⠀⠀⠈⢿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿
⣿⡏⢠⣿⣿⣿⣿⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿
⣿⠁⢸⣿⣿⣿⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿ _/_/_/ _/_/ _/
⣿⠀⢈⣉⣉⣉⣉⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿ _/ _/ _/ _/ _/ _/_/
⣿⡀⠀⠈⠛⠿⢿⣿⣷⣶⣤⣤⣤⣄⣀⣠⣤⣄⡉⠻⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿ _/ _/ _/_/ _/ _/ _/
⣿⣇⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠛⠛⠛⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿ _/ _/ _/ _/ _/ _/
⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿ _/ _/_/_/ _/ _/_/ _/ _/
⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿
⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣷⣦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣦⣤⣤⣤⣤⣴⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿Re-exports§
pub use env::args;pub use env::args_from_string;pub use env::var;
Modules§
Macros§
- env_var
env_varmacro callsiocore::env::var, returns empty string and prints warning to stderr if the given environment variable is not set.- path_
datetime_ from_ metadata_ field - traceback
Structs§
- Group
- Noop
Progress Handler NoopProgressHandleris the builtin implementation ofWalkProgressHandlerwhich aggregates results insofar as thepathgiven topath_matchingexists at the moment the calling thread calls it.- Open
Options - Path
Pathis a data structure representing a path in unix filesystems that has practical methods for otherwise boring tasks, for instance,writewrites bytes to a file, flushes bytes and syncs OS-internal data to the file-system, and if necessary, creates parents directories.- Path
Date Time - Path
Permissions PathPermissions- Path
Timestamps PathTimestamps- Size
- TILDE
- USER
- User
- XPC
- XPC_
INFO
Enums§
- Byte
Unit - Error
Errorrepresents various possible errors returned within theiocorecrate- LsPath
Type - Path
Status - Path
Type
Constants§
Traits§
- Walk
Progress Handler WalkProgressHandlertrait defines a protocol outlining the behavior ofwalk_dirin terms of whether to aggregate paths in the final result, whether to scan a directory and whether an error should causewalk_dirto fail.
Functions§
- add_
trailing_ separator - best_
guess_ home - color256_
support - color_
support - expand_
home_ regex - get_
stdout_ string - get_
subprocess_ output - glob
- guess_
unix_ home - parse_
u32 - path_
str_ to_ relative_ subpath - remove_
absolute_ path - remove_
duplicate_ separators - remove_
end - remove_
equal_ prefix_ from_ path_ strings - remove_
redundant_ current_ path - remove_
start - remove_
trailing_ slash - repl_
beg - repl_
end - safe_
string - shell_
command - Utility function to spawn a command from a string rather than array of arguments and returns the exit code. Stdout and Stderr are inherited from the current process.
- shell_
command_ stdout shell_command_stdoutexecutes the given command and returns the stdout of the process.- shell_
command_ string_ output - Utility function to spawn a command from a string rather than
array of arguments and returns strings for stdout and stderr
rather than
Vec<u8>. Stdout and Stderr are sanitized for memory safety duringStringconversion. - shell_
command_ vec_ output - Utility function to spawn a command from a string rather than array of arguments.
- split_
str_ into_ relative_ subpath_ parts - truecolor_
support - unix_
user_ info_ home - walk_
dir walk_dirtraverses the directory referenced in thepathargument recursively obeying the protocol by thehandlerargument.- walk_
globs