From 78615d3a67fc003148926deaa0fc0817fc629384 Mon Sep 17 00:00:00 2001 From: Kuu Miyazaki Date: Wed, 10 Jul 2019 23:46:02 +0900 Subject: [PATCH] Prefix path-absolute urls --- writer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writer.js b/writer.js index ff8d42c..8b4c609 100644 --- a/writer.js +++ b/writer.js @@ -32,7 +32,7 @@ class HttpPutWriter { if (fs.existsSync(uri)) { remotePath = path.join(rootPath, path.basename(uri)); } else { - remotePath = getPathFromUrl(uri); + remotePath = path.join(rootPath, getPathFromUrl(uri)); } } else { remotePath = path.join(rootPath, getPath(uri));