MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / getFileURL

Method getFileURL

system/lib/wasmfs/backends/fetch_backend.cpp:96–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96const std::string FetchBackend::getFileURL(const std::string& filePath) {
97 if (filePath == "") {
98 return baseUrl;
99 }
100 return baseUrl + "/" + filePath;
101}
102
103uint32_t FetchBackend::getChunkSize() {
104 return chunkSize;

Callers 1

FetchFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected