[−][src]Function vial::asset::exists
pub fn exists(path: &str) -> bool
Does the asset exist on disk? path
is the path relative to
ASSET_DIR
ex: asset::exists("index.html") checks for
"./static/index.html" if ASSET_DIR
is set to static
.
Works both in regular mode and bundle mode.