From c4de13f6f68aa95caec71aa74ede98e6d5764990 Mon Sep 17 00:00:00 2001 From: Michael North Date: Wed, 22 Nov 2017 23:52:51 -1000 Subject: [PATCH] use fs.copy instead of fs.copyFile --- .travis.yml | 1 + src/db/utils.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cb2d39c7..f2cee127 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: node_js node_js: +- '4' - '6' - '7' - '8' diff --git a/src/db/utils.ts b/src/db/utils.ts index 5e57510b..56dd014d 100644 --- a/src/db/utils.ts +++ b/src/db/utils.ts @@ -13,7 +13,7 @@ async function fileExists(pth: string) { const copyFile = (src: string, dst: string) => new Promise((resolve, reject) => { - fs.copyFile(src, dst, err => { + fs.copy(src, dst, err => { if (err) { reject(err); } else {