Skip to main content

media_disk_path

Function media_disk_path 

Source
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

§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!());