def in_static_dir(filepath, static_dirs):
    """See if filepath is contained within a directory contained in
    static_dirs."""
    for directory in static_dirs:
        if filepath.startswith(directory):
            return True
    else:
        return False