I keep finding relatively simple scenarios which don't seem to be possible without the use of multiple pairs (and which would of course all be solved by allowing regex). If you think you can do it without using multiple pairs, how would I do this?
Exclude all files in subdirectories AND include ...
Search found 5 matches
- 14 Jul 2021, 14:51
- Forum: Help
- Topic: Include or exclude files based on sub-directory depth
- Replies: 9
- Views: 5418
- 14 Jul 2021, 11:16
- Forum: Help
- Topic: Include or exclude files based on sub-directory depth
- Replies: 9
- Views: 5418
Re: Include or exclude files based on sub-directory depth
I guess the software is designed for simpler use-cases than what I'm wanting.
The multiple pair method would result in me having an absurd number of pairs.
I probably need to look into other solutions.
I do like FreeFileSync for simpler things though - I use it to compare folders :)
The multiple pair method would result in me having an absurd number of pairs.
I probably need to look into other solutions.
I do like FreeFileSync for simpler things though - I use it to compare folders :)
- 14 Jul 2021, 10:41
- Forum: Help
- Topic: Include or exclude files based on sub-directory depth
- Replies: 9
- Views: 5418
Re: Include or exclude files based on sub-directory depth
** is the standard in many glob implementations (and glob-like shells) so would be the logical thing to use I'd think.
* matches anything in the current directory.
** matches anything in all directories.
However most software that I use supports the use of regex for file and file path matching ...
* matches anything in the current directory.
** matches anything in all directories.
However most software that I use supports the use of regex for file and file path matching ...
- 14 Jul 2021, 08:48
- Forum: Help
- Topic: Include or exclude files based on sub-directory depth
- Replies: 9
- Views: 5418
Re: Include or exclude files based on sub-directory depth
I found the answer:
Include: /*/*.txt
Exclude: /*/*/*.txt
It's a bit cumbersome however. Is there / can we get / a syntax for /*/ where it's only one folder, and /**/ where it's multiple (or however the syntax should work)?
Or even better, add regex support! :D
Include: /*/*.txt
Exclude: /*/*/*.txt
It's a bit cumbersome however. Is there / can we get / a syntax for /*/ where it's only one folder, and /**/ where it's multiple (or however the syntax should work)?
Or even better, add regex support! :D
- 14 Jul 2021, 08:42
- Forum: Help
- Topic: Include or exclude files based on sub-directory depth
- Replies: 9
- Views: 5418
Include or exclude files based on sub-directory depth
Hello,
Is there any way to include or exclude different levels of sub-directory?
For example, can I include all .txt files that are in the first level of sub-directory only, and ignore any others?
If using regex it would look like this:
Include: /[^/]*/*.txt
And it would:
/dir/include.txt
/dir2 ...
Is there any way to include or exclude different levels of sub-directory?
For example, can I include all .txt files that are in the first level of sub-directory only, and ignore any others?
If using regex it would look like this:
Include: /[^/]*/*.txt
And it would:
/dir/include.txt
/dir2 ...