Skip to main content

ensure_media_subtree

Function ensure_media_subtree 

Source
pub fn ensure_media_subtree(
    app_root: &Path,
    business_slug: &str,
) -> Option<String>
Expand description

Ensures the managed media subtree exists below an app root.

§Parameters

§Returns

Returns Some when crate::runtime::dynamic::ensure_media_subtree can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::ensure_media_subtree(std::path::Path::new("apps/dev_docs"), "demo");