Commit 71fb7a5d authored by yann300's avatar yann300

fix gist

parent ed810173
...@@ -50,9 +50,11 @@ var run = function () { ...@@ -50,9 +50,11 @@ var run = function () {
// return all the files, except the temporary/readonly ones // return all the files, except the temporary/readonly ones
function packageFiles () { function packageFiles () {
return files.list() var ret = {}
Object.keys(files.list())
.filter(function (path) { if (!files.isReadOnly(path)) { return path } }) .filter(function (path) { if (!files.isReadOnly(path)) { return path } })
.map(function (path) { return { content: files.get(path) } }) .map(function (path) { ret[path] = { content: files.get(path) } })
return ret
} }
function createNonClashingName (path) { function createNonClashingName (path) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment