ankane/pdscan

Idea: additional options for file search

swarajban opened this issue · 1 comments

Very helpful tool, for compliance reasons, we built a similar (but worse) tool internally to do this. We run this tool on people's local workstations to detect PII at regular intervals.

For us, it would be very helpful to have the following additional config options when searching for files

  • include/exclude file types
  • exclude certain subdirectories (we want to run on Macos with directory /Users/, but want to exclude mounted drives like for remote MSFT files that could be mounted at /Users//OneDrive)

Hey @swarajban, thanks for the suggestion! We could probably add --include and --exclude options for this.

pdscan file:///Users --exclude OneDrive --exclude "*.pdf"

I'm not sure when I'll have time to look at it, but I've added it to the plan.