📓 Add comment

This commit is contained in:
C-3PO 2018-07-16 03:19:29 +02:00
parent a39f428912
commit 0a18475076
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
2 changed files with 4 additions and 0 deletions

View file

@ -29,6 +29,7 @@ export default function saveResponse(
//wait until everything is written to disk, then return file name //wait until everything is written to disk, then return file name
writeStream.end(() => { writeStream.end(() => {
//TODO: this is no longer firing ever since we replaced on('data') event by pipe()
resolve(filePath); resolve(filePath);
}); });
}); });

View file

@ -144,6 +144,7 @@ export default async function getPatch({ product, from, to, sourceDirectory, tar
console.error(`Could not delete removed file "${file.name}"`, error); 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
} }