-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Input path goes inside Output path #562
Comments
I can't test right now, but it seems correct in sofar it replicates the
behaviour of the cp tool (if not, this is a bug). Your final comment does
sound like something is off, the * should include directories when -r is
set. I can take a look in March!
El mié., 8 de feb. de 2023 16:08, Allan Brazute ***@***.***>
escribió:
… 1st run:
minify --sync --all --recursive --preserve=links,mode,ownership,timestamps
--match '\.(css|html|js)$' dir/a/ -o dir/b/
*dir/b* will get created as expected.
2nd run:
minify --sync --all --recursive --preserve=links,mode,ownership,timestamps
--match '\.(css|html|js)$' dir/a/ -o dir/b/
It will create *dir/b/a* with the content I would expect in *dir/b*.
It does not metter if I add "*/*" at the end of the paths or not.
If I use *dir/a/* -o dir/b/*, it will do it right but will ignore the
recursive part and will not create/sync the sub directories.
Is it a bug or am I missing something?
—
Reply to this email directly, view it on GitHub
<#562>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKOGHSHTASDT5JVYV3RVUTWWQDOJANCNFSM6AAAAAAUVYAOP4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I've run some tests, and this behaviour is the same as with The As to the final comment about using |
Fixed the last part by throwing an error that the directory doesn't exist, much like |
That worked like a charm. Thank you. The only thing I have noticed but, at least for me, is not a big problem, is that at first run ( |
I've pushed an update to fix that, please try. Additionally, I've added support for |
1st run:
minify --sync --all --recursive --preserve=links,mode,ownership,timestamps --match '\.(css|html|js)$' dir/a/ -o dir/b/
dir/b will get created as expected.
2nd run:
minify --sync --all --recursive --preserve=links,mode,ownership,timestamps --match '\.(css|html|js)$' dir/a/ -o dir/b/
It will create dir/b/a with the content I would expect in dir/b.
It does not metter if I add "/" at the end of the paths or not.
If I use dir/a/* -o dir/b/, it will do it right but will ignore the recursive part and will not create/sync the sub directories.
Is it a bug or am I missing something?
The text was updated successfully, but these errors were encountered: