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

Enhancement for p:file-copy #38

Open
xatapult opened this issue Jun 7, 2023 · 1 comment
Open

Enhancement for p:file-copy #38

xatapult opened this issue Jun 7, 2023 · 1 comment

Comments

@xatapult
Copy link
Contributor

xatapult commented Jun 7, 2023

the p:file-copy step is currently unable to copy a directory to a specified target directory. Instead it copies it in the specified target directory. Maybe we can add some option to specify this?

This currently not easily solved. If you do <p:file-copy href=".../source" target=".../target"/>, what you get is a directory .../target/source. To me not logical and unintuitive.

@gimsieke
Copy link

gimsieke commented Jun 7, 2023

To me it’s logical and intuitive because it’s specified like that ;)

You can achieve the desired result if you copy source to target/.. and then rename it. Except that you can’t rename it because p:file-move doesn’t have an overwrite option.

So you can achieve the desired result by removing target first and then copying source to former target’s path.

I could live with this solution.

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

No branches or pull requests

2 participants