Add download bucket as zip archive

This commit is contained in:
Christoph Wiechert
2017-04-25 18:22:24 +02:00
parent 85a88a80c6
commit c7b354386d
4 changed files with 86 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ class Store {
if(!end) end = info.size - 1;
contentLength = end - start + 1
}
cb({ contentLength, metadata: info.metadata, info });
if(cb) cb({ contentLength, metadata: info.metadata, info });
});
return fsp.createReadStream(this.getFilename(fid), {start, end});
}