pub fn media_disk_path(
app_root: &Path,
business_slug: &str,
media_url: &str,
) -> Option<String>Expand description
Resolves a validated media URL to a file below the app media tree.
§Parameters
app_root: Input consumed bycrate::runtime::dynamic::media_disk_path.business_slug: Input consumed bycrate::runtime::dynamic::media_disk_path.media_url: Input consumed bycrate::runtime::dynamic::media_disk_path.
§Returns
Returns Some when crate::runtime::dynamic::media_disk_path can produce a value and None otherwise.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::dynamic::media_disk_path.
§Examples
ⓘ
let _result = pharos_native::runtime::dynamic::media_disk_path(std::path::Path::new("apps/dev_docs"), "demo", todo!());§Related
crate::runtime::dynamicfor adjacent helpers that share the same runtime surface.