pub fn make_local_path<P: AsRef<Path>>(
base_path: P,
components: &[&str],
) -> PathBuf
Expand description
Creates a platform-appropriate local path using PathBuf
.
This function constructs file system paths using the platform’s native path separators. Use this for local file operations that need to work with the actual file system.
§Arguments
base_path
- The base directory pathcomponents
- Path components to join
§Returns
A PathBuf
with platform-appropriate separators
§Examples
let path = make_local_path("/base", &["data", "quotes", "EURUSD"]);
// On Unix: "/base/data/quotes/EURUSD"
// On Windows: "\base\data\quotes\EURUSD"