From f7a0f4ebff40faba507b7d9a022b6d5ef0b37535 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 9 Nov 2018 00:51:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Update=20comment=20and=20cspell?= =?UTF-8?q?=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 6 ++++++ src/cdn/downloadWrapper.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 9a639bc..5b19abb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,11 +3,17 @@ "affero", "agpl", "bencode", + "betatest", + "cstraining", "decryptor", + "eualas", "jedipedia", + "liveeptest", + "liveqatest", "metafile", "networkgroupid", "patchmanifest", + "publictest", "retailclient", "solidconfig", "solidpkg", diff --git a/src/cdn/downloadWrapper.ts b/src/cdn/downloadWrapper.ts index f47866b..23f292e 100644 --- a/src/cdn/downloadWrapper.ts +++ b/src/cdn/downloadWrapper.ts @@ -8,7 +8,7 @@ import createDirRecursively from './funcs/createDirRecursively'; /** Downloads the given URL and saves it to disk. Returns the location where file is saved under. Throws error if download fails. */ export default async function downloadWrapper({ host, path, size, useCurl = false }: {host: string, path: string, size: number, useCurl: boolean}): Promise { //Generate file name we want to save it under - //e.g. on Linux: /tmp/patcher/patch/assets_swtor_main/assets_swtor_main_-1to0/assets_swtor_main_-1to0.zip + //e.g. on Linux: /tmp/patcher/cdn-patch.swtor.com/patch/assets_swtor_main/assets_swtor_main_-1to0/assets_swtor_main_-1to0.zip const tempFileName = nodePath.join(os.tmpdir(), 'patcher', host, path); //Create parent directory recursively