question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

-u 1 doesn't work with globstars

See original GitHub issue

When 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:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
jeremymoritzcommented, Oct 11, 2016

@mkimmet You didn’t use the same syntax. Use **/*. Try this:

copyfiles -u 1 \"./dist/**/*\" ../Angular2Test/Content/myapp

3reactions
jeremymoritzcommented, Oct 11, 2016

I’m pretty sure the solution is to use escaped double-quotes

copyfiles -u 1 \"./dist/**/*\" ../Angular2Test/Content/myapp

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found