Expand description
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠟⠛⠛⠛⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ___ ___ ___
⣿⣿⣿⣿⣿⣿⡿⠟⣋⣡⣴⣶⣾⣿⡇⢸⣶⣄⠀⠀⠈⠙⠻⢿⣿⣿⣿⣿⣿⣿ |_ _/ _ \ / __|___ _ _ ___
⣿⣿⣿⣿⡿⢋⣴⣾⣿⣿⣿⣿⣿⣿⡇⢸⣿⣿⣆⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿ | | (_) | (__/ _ \ '_/ -_)
⣿⣿⣿⠏⣰⣿⣿⣿⣿⣿⣿⡿⠟⠛⠃⠘⢿⣿⣿⡀⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿ |___\___/ \___\___/_| \___|
⣿⣿⠏⣸⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⠀⠀⠈⢿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿
⣿⡏⢠⣿⣿⣿⣿⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿
⣿⠁⢸⣿⣿⣿⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿ _/_/_/ _/_/ _/
⣿⠀⢈⣉⣉⣉⣉⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿ _/ _/ _/ _/ _/ _/_/
⣿⡀⠀⠈⠛⠿⢿⣿⣷⣶⣤⣤⣤⣄⣀⣠⣤⣄⡉⠻⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿ _/ _/ _/_/ _/ _/ _/
⣿⣇⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠛⠛⠛⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿ _/ _/ _/ _/ _/ _/
⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿ _/ _/_/_/ _/ _/_/ _/ _/
⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿
⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣷⣦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣦⣤⣤⣤⣤⣴⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
Re-exports§
pub use env::args;
pub use env::args_from_string;
pub use env::var;
Modules§
Macros§
- env_var
env_var
macro 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 NoopProgressHandler
is the builtin implementation ofWalkProgressHandler
which aggregates results insofar as thepath
given topath_matching
exists at the moment the calling thread calls it.- Open
Options - Path
Path
is a data structure representing a path in unix filesystems that has practical methods for otherwise boring tasks, for instance,write
writes 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
Error
represents various possible errors returned within theiocore
crate- LsPath
Type - Path
Status - Path
Type
Constants§
Traits§
- Walk
Progress Handler WalkProgressHandler
trait defines a protocol outlining the behavior ofwalk_dir
in terms of whether to aggregate paths in the final result, whether to scan a directory and whether an error should causewalk_dir
to fail.
Functions§
- add_
trailing_ separator - best_
guess_ home - 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_stdout
executes 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 duringString
conversion. - shell_
command_ vec_ output - Utility function to spawn a command from a string rather than array of arguments.
- split_
str_ into_ relative_ subpath_ parts - unix_
user_ info_ home - walk_
dir walk_dir
traverses the directory referenced in thepath
argument recursively obeying the protocol by thehandler
argument.- walk_
globs