google / grr

GRR Rapid Response: remote live forensics for incident response

Home Page:https://grr-doc.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ClientFileFinder recursive glob ** behaves differently

max-vogler opened this issue · comments

Compared to FileFinder, ClientFileFinder's recursive glob ** shows two regressions:

  1. ** does not match the current directory, only subdirectories. this means that /foo/** does not match /foo/bar with CilentFileFinder, only /foo/subfolder/bar.
    • Workaround: Specify two path expressions, /foo/* and /foo/**.
  2. **suffix fails in ClientFileFinder with malformed recursive component. This means that /foo/**.ext fails in ClientFileFinder
    • Workaround: Enclose recursive glob in slashes. Use /foo/**/*.ext and /foo/*.ext.