diff --git a/src/cdn/funcs/saveResponse.ts b/src/cdn/funcs/saveResponse.ts index 7b1432c..2daa6cd 100644 --- a/src/cdn/funcs/saveResponse.ts +++ b/src/cdn/funcs/saveResponse.ts @@ -29,6 +29,7 @@ export default function saveResponse( //wait until everything is written to disk, then return file name writeStream.end(() => { + //TODO: this is no longer firing ever since we replaced on('data') event by pipe() resolve(filePath); }); }); diff --git a/src/ssn/getPatch.ts b/src/ssn/getPatch.ts index 1f567d4..dc818e0 100644 --- a/src/ssn/getPatch.ts +++ b/src/ssn/getPatch.ts @@ -144,6 +144,7 @@ export default async function getPatch({ product, from, to, sourceDirectory, tar console.error(`Could not delete removed file "${file.name}"`, error); } }); + //TODO: delete folder (and parent folders) that are empty }); } @@ -161,4 +162,6 @@ export default async function getPatch({ product, from, to, sourceDirectory, tar }); }); } + + //TODO: add option to delete downloaded files once patching is complete }