{% for root, dir, files in os.walk(filedir) %} {% if root != filedir %}
{% for f in files %} {% endfor %}
{% endif %} {% endfor %}