fix: store zipped items inside "Items" subfolder

This commit is contained in:
Baptiste Grob
2020-07-22 10:33:49 +02:00
parent e86f70233a
commit 9f522c8eb6

View File

@@ -119,7 +119,7 @@ export class ArchiveManager {
const fileSuffix = `-${item.uuid.split("-")[0]}.txt`;
// Standard max filename length is 255. Slice the note name down to allow filenameEnd
filePrefix = filePrefix.slice(0, (255 - fileSuffix.length));
const fileName = `${item.content_type}/${filePrefix}${fileSuffix}`;
const fileName = `Items/${item.content_type}/${filePrefix}${fileSuffix}`;
zipWriter.add(fileName, new zip.BlobReader(blob), () => {
index++;
if(index < items.length) {