find_entries#

barecat.cli.commands.find_entries(index, path='', name=None, pathpattern=None, ftype=None, size=None, maxdepth=None, print0=False, output=print)[source]#

Find files in archive. Mimics the find command.

Parameters:
  • index – Barecat index

  • path (str) – Starting path

  • name (Optional[str]) – Match basename against glob pattern

  • pathpattern (Optional[str]) – Match full path against glob pattern

  • ftype (Optional[str]) – File type (‘f’ for files, ‘d’ for directories)

  • size (Optional[str]) – Size filter (‘+N’ larger, ‘-N’ smaller, ‘N’ exact)

  • maxdepth (Optional[int]) – Maximum depth to descend

  • print0 (bool) – Use null separator

  • output (Callable[[str], None]) – Function to output each line