-
Notifications
You must be signed in to change notification settings - Fork 733
-
Notifications
You must be signed in to change notification settings - Fork 733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected cp behaviour with directories #15
Comments
sounds like a bug indeed, will look into this soon, thanks Brendan. |
I still have the problems with cp function. Consider directory structure like this:
Work directory is root, and I try to copy dir1 to dir2 $ node
$ node
I'm using node 0.8.12 on Mac OS X 10.7.5, shelljs version is 0.0.8 |
@can3p sorry, I can't reproduce the problem. is it still happening? |
@can3p if it is, can you please open a separate issue as the error is different from the original one here? thanks! |
With unix cp you can do
cp -Rf oneDir/ twoDir/
which copies all the files in oneDir into twoDir. When I do:
cp('-Rf', 'oneDir/', '/twoDir/');
nothing gets copied, I have to do
cp('-Rf', 'oneDir/*', '/twoDir/');
from man cp
The text was updated successfully, but these errors were encountered: