-u 1 doesn't work with globstars
See original GitHub issueWhen trying to copy the files and folders from one folder to another using globstars and -u 1:
copyfiles -u 1 ./dist/** ../Angular2Test/Content/myapp
It gives this error:
K:\dev\Angular2Test\Angular2Source\node_modules\copyfiles\index.js:30 throw new Error(‘cant go up that far’); ^
Error: cant go up that far at dealWith (K:\dev\Angular2Test\Angular2Source\node_modules\copyfiles\index .js:30:11) at K:\dev\Angular2Test\Angular2Source\node_modules\copyfiles\index.js:64:39 at FSReqWrap.oncomplete (fs.js:82:15)
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Unable to enable globstar in Bash 4 - Stack Overflow
Hmm. shopt -s globstar should work. To debug, make sure you are running Bash 4: $SHELL --version. Then check the setting of globstar...
Read more >How to enable the double star ** (globstar) operator?
1 Answer 1 ; echo $BASH_VERSION 4.4.12(1)-release. Check if it is enabled via: ; shopt globstar. It defaults to off . If you...
Read more >bash globstar matching - Unix & Linux Stack Exchange
This works as you expected in these versions of Bash as supplied with the listed distributions: 4.1.2(1) — CentOS 6.5; 4.1.5(1) — Debian...
Read more >ZSH and globstar to match all files in subdirectories, but not ...
* doesn't work. Also, this question is specifically about the ZSH globstar patterns, and not about other solutions, such as: find foo -type ......
Read more >BashPitfalls - Greg's Wiki
echo "Hello World!" The problem here is that, in an interactive Bash shell (in versions prior to 4.3), you'll see an error like ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mkimmet You didn’t use the same syntax. Use
**/*
. Try this:copyfiles -u 1 \"./dist/**/*\" ../Angular2Test/Content/myapp
I’m pretty sure the solution is to use escaped double-quotes
copyfiles -u 1 \"./dist/**/*\" ../Angular2Test/Content/myapp