Skip to content

Commit

Permalink
use fs.copy instead of fs.copyFile
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Nov 23, 2017
1 parent 0280b74 commit c4de13f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: node_js
node_js:
- '4'
- '6'
- '7'
- '8'
Expand Down
2 changes: 1 addition & 1 deletion src/db/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c4de13f

Please sign in to comment.