Assets module

asset_path_is_relative

procedureextensionsince 0.31.0Source

A relative path that stays inside the asset folder: no leading '/', no drive or URL scheme, no '..' component and no backslashes. load_asset refuses anything else on every platform, so a program behaves the same natively and in the browser.

asset_path_is_relative :: (path: string) -> bool

Parameters

path: string

Returns

bool

See also