Skip to main content

normalise_asset_path

Function normalise_asset_path 

Source
pub fn normalise_asset_path(path: &str) -> String
Expand description

path as the key list_asset_files files it under: separators made /, and empty and . segments dropped, so ./assets//board.css and assets\board.css both become assets/board.css. A .. segment is kept (the checker rejects it separately, bynk.asset.unsafe_path).