Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Mar 7, 2017
1 parent 4e6f220 commit b73febe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/move/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,14 @@ function moveFileAcrossDevice (source, dest, overwrite, optionsTemp, callback) {
if (err.code === 'EISDIR' || err.code === 'EPERM') {
moveDirAcrossDevice(source, dest, overwrite, callback)
} else {
//callback(err)

// callback(err)
if (optionsTemp.preserveTimestamps) {
utimes.utimesMillis(dest, optionsTemp.stat.atime, optionsTemp.stat.mtime, function (err) {
return callback(err)
})
} else {
callback(err)
}

}
})
})
Expand Down

0 comments on commit b73febe

Please sign in to comment.