Skip to content
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

Enable follow symlinks #20

Open
fredriktid opened this issue Nov 28, 2011 · 2 comments
Open

Enable follow symlinks #20

fredriktid opened this issue Nov 28, 2011 · 2 comments

Comments

@fredriktid
Copy link
Contributor

ezupgrade does not follow symlinks.

The "cp" command can follow symlinks by using the "L" option, e.g.:

cp -RL sourcedir/ targetdir/

See man page.

@cgjengedal
Copy link

How would you like this to behave? If symlinks are used to normalize files or to place them on separate partitions, would you still like all content to be copied directly into the destination folder?

Maybe you would like to preserve the link: cp -R --preserve=links sourcedir/ targetdir/

How about two options:
--followsymlinks
--preservesymlinks

@fredriktid
Copy link
Contributor Author

I agree, having two options is the best solution.

The default behaviour should probably be to follow symlinks since most users don't use separate partitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants