Skip to main content

extract_identifier_from_path

Function extract_identifier_from_path 

Source
pub fn extract_identifier_from_path(file_path: &str) -> Option<&str>
Expand description

Extracts the identifier from a file path: typically the second-to-last path component.

For example, from data/quotes/EURUSD/file.parquet, extracts EURUSD. Both / and \ separators are recognized so Windows paths resolve identically.