Skip to content

Commit

Permalink
Merge pull request #204 from raybellis/copy-devnull
Browse files Browse the repository at this point in the history
allow copy of block and character device files
  • Loading branch information
jprichardson committed Dec 17, 2015
2 parents 631ed20 + 141422e commit b46f5a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/copy/ncp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b46f5a4

Please sign in to comment.