Commit 59417d69 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Do not include readonly files in the output package

parent a95ec855
......@@ -47,8 +47,11 @@ var run = function () {
var config = new Config(storage)
var currentFile
// return all the files, except the temporary/readonly ones
function packageFiles () {
return files.list().map(function (path) { return { content: files.get(path) } })
return files.list()
.filter(function (path) { if (!files.isReadOnly(path)) { return path } })
.map(function (path) { return { content: files.get(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