Luna::Asset::load_assets_meta
RV load_assets_meta(const Path &path, bool allow_overwrite=true)
Loads or reloads assets' metadata by reading asset metadata files.
Parameters
-
in path
The path of the asset or direcotry. If
pathspecifies one asset, the system loads the asset metadata by opening its meta file and reading from it. Ifpathspecifies one directory, the system loads assets metadata for all assets in the directory recursively, every asset metadata is loaded as ifload_assets_metais called for that particular asset. -
in allow_overwrite
Specify the behavior when the specified asset already exists in the system. If
allow_overwriteistrue, the system will overwrite the asset metadata in the system using new asset metadata loaded from asset meta file; ifallow_overwriteisfalse, the system discards the new asset metadata and does not change the asset metadata in the system if the specified asset already exists in the system. Ifpathspecifies one directory, this parameter is applied to all assets in that directory.