| 51 | } |
| 52 | |
| 53 | String DirectoryAssetSource::toFilesystem(String const& path) const { |
| 54 | if (!path.beginsWith("/")) |
| 55 | throw AssetSourceException::format("Asset path '{}' must be absolute in DirectoryAssetSource::toFilesystem", path); |
| 56 | else |
| 57 | return File::relativeTo(m_baseDirectory, File::convertDirSeparators(path.substr(1))); |
| 58 | } |
| 59 | |
| 60 | void DirectoryAssetSource::setMetadata(JsonObject metadata) { |
| 61 | if (metadata != m_metadata) { |
no test coverage detected