local_to_object_store_path

Function local_to_object_store_path 

Source
pub fn local_to_object_store_path(local_path: &Path) -> String
Expand description

Converts a local PathBuf to an object store path string.

This function normalizes a local file system path to the forward-slash format expected by object stores, handling platform differences.

§Arguments

  • local_path - The local PathBuf to convert

§Returns

A string with forward slash separators suitable for object store operations

§Examples

let local_path = PathBuf::from("data").join("quotes").join("EURUSD");
let object_path = local_to_object_store_path(&local_path);
assert_eq!(object_path, "data/quotes/EURUSD");