MCPcopy Create free account
hub / github.com/codecombat/codecombat / getDirectory

Function getDirectory

app/core/api/files.js:12–18  ·  view source on GitHub ↗
({ path }, options)

Source from the content-addressed store, hash-verified

10
11module.exports = {
12 getDirectory ({ path }, options) {
13 if (options == null) { options = {} }
14 if (!_.string.endsWith(path, '/')) {
15 path = path + '/'
16 }
17 return fetchJson(`/file/${path}`, options).then(res => JSON.parse(res))
18 },
19
20 saveFile ({ url, filename, mimetype, path, force }, options) {
21 if (options == null) { options = {} }

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected