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.

How to exclude all directories except one?

See original GitHub issue

I have a directory with bunch of translation files like

/de_DE
/el_GR
/en_US
and etc.

I want to exclude all files except en_US. Of course I can specify them all in ignorePaths section, but can I do it better?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Jason3Scommented, Sep 28, 2021

Note: overrides are applied in order. So, reversing the order of the overrides will not work.

0reactions
github-actions[bot]commented, Nov 6, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Listing all directories except one - linux - Stack Overflow
So I want to list all directories except "logs". What will be shell command for that. Something like #!/bin/bash for dir in `find ......
Read more >
rsync - exclude all directories except a few - Server Fault
So I want to rsync two of those dirs, while excluding the rest. It's important that we exclude all but those two dirs,...
Read more >
Remove all files/directories except for one file
will remove all regular files (recursively, including hidden ones) except file.txt . To remove directories, change -type f to -type d and ...
Read more >
Exclude a directory or multiple directories while using find ...
Method 1 : Using the option “-prune -o”; Method 2 : Using “! -path”; Method 3 : Simple; Excluding multiples directories.
Read more >
How to exclude file when using scp command recursively
How to use rsync command to exclude files ; -a : Recurse into directories i.e. copy all files and subdirectories. Also, turn on...
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