Open
Description
On MacOS if I run:
import { globSync } from 'glob';
const files = globSync('./plugins/**/*.*');
console.log(files);
The output is:
[
'plugins/Surge XT Effects.app',
'plugins/Surge XT Effects.app/Contents/Info.plist',
'plugins/Surge XT Effects.app/Contents/Resources/RecentFilesMenuTemplate.nib',
'plugins/Surge XT Effects.app/Contents/Resources/Icon.icns'
]
If I change to:
import { globSync } from 'glob';
const files = globSync('./plugins/**/*.*', { ignore: ['./plugins/**/Contents/**/*'] });
console.log(files);
The output is:
[
'plugins/Surge XT Effects.app',
]
My assumption is that most users want want the "file" as shown in the UI, vs the contents of the package.
- Should the default functionality be to hide the Contents directory?
- Could there be a helper to switch this feature on/off without specifying an ignore negation rule?
Metadata
Metadata
Assignees
Labels
No labels