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

Alternative to copyfiles compatible with both linux and windows? #75

Open
FredericLatour opened this issue Oct 3, 2019 · 7 comments
Open

Comments

@FredericLatour
Copy link

Does anybody know an alternative to this tool that is compatible with both linux and windows?
I've spent hours and hours because of weird behaviors with linux and I'm afraid that even if I could find an immediate solution, i might be bitten with an edge case at a later time.

@sondreb
Copy link

sondreb commented Jul 27, 2021

I came here looking for the same, I'm getting different copy behavior between Ubuntu and Windows.

Ubuntu:
image

Windows:
image

@sondreb
Copy link

sondreb commented Jul 27, 2021

I fixed my issue by escaping the search pattern, had similar issue previously with different shell and OS. Depending on if you quote or not, it might differ how and what is resolving the glob you enter.

So doing something like \"ui/dist/**/*\" will help.

#61

@calvinmetcalf
Copy link
Owner

calvinmetcalf commented Jul 28, 2021 via email

@sondreb
Copy link

sondreb commented Jul 28, 2021

It depends on both OS and shell, in my example I was using pwsh (Powershell Core) on Ubuntu, where it failed. Worked fine on Windows. I have been bit by this behavior multiple times in my devops work =)

@rujorgensen
Copy link

I'm interested in the original question as well, anyone know of a good alternative 🙂? (having some other issues with it, and would rather not spend more time on it)

@calvinmetcalf
Copy link
Owner

the the real issue ends up being how shells interpret things before it even gets to this (or any other) library so there may not be a library that does what you want

@calvinmetcalf
Copy link
Owner

this is mostly fixed with double quotes

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

4 participants