Module dotfiles_core::path
source · Expand description
Contains helpful functions to deal with paths in the context of parsing them for dotfiles configs.
Functions§
- Converts a file path to absolute if it is relative. If
current_dir
is provided it uses it for the base dir, otherwise it relies on std::env::current_dir() - Checks for ~ and replaces it with a home directory if necessary.