MCPcopy Create free account
hub / github.com/esengine/esengine / DefaultPathResolver

Class DefaultPathResolver

packages/runtime-core/src/IPlatformAdapter.ts:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 * Default path resolver (returns path as-is)
151 */
152export class DefaultPathResolver implements IPathResolver {
153 resolve(path: string): string {
154 // 如果已经是 URL,直接返回
155 if (path.startsWith('http://') ||
156 path.startsWith('https://') ||
157 path.startsWith('data:') ||
158 path.startsWith('blob:')) {
159 return path;
160 }
161 return path;
162 }
163}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected