Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excluding Directories #1

Closed
omgcyrilic opened this issue Oct 15, 2015 · 3 comments
Closed

Excluding Directories #1

omgcyrilic opened this issue Oct 15, 2015 · 3 comments

Comments

@omgcyrilic
Copy link

Is there a way to exclude scanning directories like /private ?

Thanks!

@Bsugar9
Copy link
Collaborator

Bsugar9 commented Oct 16, 2015

./glutil -r --full -fd: -l: basedir ! -regexi "^/site/(PRE|SPEEDTEST|STAFF|PRIVATE)/"

Should do the trick.

@omgcyrilic
Copy link
Author

many thanks Bsugar9!

@nixnodes
Copy link
Owner

-l: basedir makes the next defined filter (regex in this case) target the base component of a path;

./glutil -r --full -fd: -l: dir ! -regexi "^/folder1/folder2$" - target whole path
./glutil -r --full -fd: -l: basedir ! -regexi "^folder2$" - target base path

For example, If excluding a component of a path like '/private' from /site/private/something, you'll want to use '-l: dir' (the default when no -l: option given)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants