Commit 61eab24a authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #439 from ethereum/bugGist

Fix gist
parents ed810173 71fb7a5d
......@@ -50,9 +50,11 @@ var run = function () {
// return all the files, except the temporary/readonly ones
function packageFiles () {
return files.list()
var ret = {}
Object.keys(files.list())
.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) {
......
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