fix: store zipped items inside "Items" subfolder
This commit is contained in:
@@ -119,7 +119,7 @@ export class ArchiveManager {
|
|||||||
const fileSuffix = `-${item.uuid.split("-")[0]}.txt`;
|
const fileSuffix = `-${item.uuid.split("-")[0]}.txt`;
|
||||||
// Standard max filename length is 255. Slice the note name down to allow filenameEnd
|
// Standard max filename length is 255. Slice the note name down to allow filenameEnd
|
||||||
filePrefix = filePrefix.slice(0, (255 - fileSuffix.length));
|
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), () => {
|
zipWriter.add(fileName, new zip.BlobReader(blob), () => {
|
||||||
index++;
|
index++;
|
||||||
if(index < items.length) {
|
if(index < items.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user