Skip to content

Commit

Permalink
Merge pull request #376 from tvald-contrib/master
Browse files Browse the repository at this point in the history
move(): fall back to streams when hard links aren't supported
  • Loading branch information
RyanZim authored Mar 3, 2017
2 parents 3f34210 + 3a3912a commit e771770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/move/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function move (source, dest, options, callback) {
} else {
fs.link(source, dest, err => {
if (err) {
if (err.code === 'EXDEV' || err.code === 'EISDIR' || err.code === 'EPERM') {
if (err.code === 'EXDEV' || err.code === 'EISDIR' || err.code === 'EPERM' || err.code === 'ENOTSUP') {
moveAcrossDevice(source, dest, overwrite, callback)
return
}
Expand Down

0 comments on commit e771770

Please sign in to comment.