Added -L follow sym link option to cp#232
Added -L follow sym link option to cp#232charlesverge wants to merge 1 commit intoshelljs:masterfrom charlesverge:master
Conversation
|
@charlesverge: Thanks so much for your PR! Could you please add some tests? Thanks! |
|
👍 |
|
@charlesverge could you also rebase off of master? We now have Windows tests. Thanks! |
|
@charlesverge: Hi! Would you mind rebasing this off master? We'd like to get it in v0.7.0! Thanks! |
|
@charlesverge any further work on this? If not, either @ariporad or I can take this PR over. |
|
@nfischer: I think one of us should take this over, do you want it, or should I? |
|
@ariporad you can take this one if you like |
|
@ariporad I might be able to take a look. I just have a lot on my plate right now, so I've been focusing on some other things. There are a couple other shelljs features that are higher up on the priority list for me. |
|
@nfischer: I'll actually take this on. |
|
@ariporad Are you still taking this on? This would be a nice feature for v0.7, but it might also be hard to get Windows compatibility. |
|
@nfischer: I'll try. I'm not great at Windows, but I'll try. |
|
I've pushed a new commit that is based off the lasted master branch it includes
I've executed these tests on a windows 7 machine and they pass successfully. |
|
If the goal is to duplicate native behavior On a macbook and Linux/Ubuntu a native cp -RL does no copy cycling links and copies non cycling links as directories rather than sym links. On Windows 7 the xcopy command line gives an insufficient error for a cycling link and for the non cycling link it copies the directory structure as if it is not a link. Using the file manager results in the link being a blank directory. |
|
Also any hints on why the travis-ci build fails would be cool. |
|
@charlesverge: It looks like you've changed the docs for cp in the docstring here, but you haven't regenerated the docs. You can do this with |
|
@ariporad Looks like that was it. |
|
@charlesverge thanks for the PR! Looks pretty good. If I have any questions, I'll ping this thread |
Added option to allow cp to follow sym links and copy source files rather than sym link.