From 0a1847507695945d073ac74c5eb685bd9edfff84 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Mon, 16 Jul 2018 03:19:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=93=20Add=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cdn/funcs/saveResponse.ts | 1 + src/ssn/getPatch.ts | 3 +++ 2 files changed, 4 insertions(+) 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 }