Skip to content

Commit

Permalink
Use new Buffer() in moveSync() to support full Node.js v4 line
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Mar 15, 2017
1 parent e02c07b commit b121cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/move-sync/index.js
Expand Up @@ -60,7 +60,7 @@ function moveSyncAcrossDevice (src, dest, overwrite) {

function moveFileSyncAcrossDevice (src, dest, overwrite) {
const BUF_LENGTH = 64 * 1024
const _buff = Buffer.alloc(BUF_LENGTH)
const _buff = new Buffer(BUF_LENGTH)

const flags = overwrite ? 'w' : 'wx'

Expand Down

0 comments on commit b121cf0

Please sign in to comment.