Browse Source

Update ncp.js

allow copying of character or block devices (NB: copies contents, not the inode)
ci/travis-osximage
Ray Bellis 9 years ago
parent
commit
141422ee38
  1. 2
      lib/copy/ncp.js

2
lib/copy/ncp.js

@ -69,7 +69,7 @@ function ncp (source, dest, options, callback) {
if (stats.isDirectory()) {
return onDir(item)
} else if (stats.isFile()) {
} else if (stats.isFile() || stats.isCharacterDevice() || stats.isBlockDevice()) {
return onFile(item)
} else if (stats.isSymbolicLink()) {
// Symlinks don't really need to know about the mode.

Loading…
Cancel
Save