intent: How can I tell if a file is a descendant of a given directory?
rewritten_intent: check if file `filename` is descendant of directory '/the/dir/'
snippet: os.path.commonprefix(['/the/dir/', os.path.realpath(filename)]) == '/the/dir/'