Allow#

allow_ methods that return whether to crawl a file.

ocdsindex.allow.allow_sphinx(root, file)[source]#

Allows all files, except the 404 page.

Parameters:
  • root (str) – a directory path

  • file (str) – a file basename

Returns:

whether to crawl the file

Return type:

bool