serpentem/fs-util — pull request #1 by giuliandrimba (2013-01-05 17:20:26+00:00)
Title: Fixed an error in "copy_r" method where I couldn't pass as a parameter a...

Fixed an error in "copy_r" method where I couldn't pass as a parameter a single file to be copied.

This code was throwing an error:

fs.cp_r "path/to/single/file.yml", "path/to/single/copy.yml"

The error message:

fs.js:500
return binding.readdir(pathModule._makeLong(path));
^
Error: ENOTDIR, not a directory 'path/to/single/file.yml'