Skip to content


Allow FileSystemLoader to follow symlinks #71

rawsource opened this Issue · 2 comments

3 participants


Since python 2.6 os.walk has the 'followlinks' parameter.
Could this be made an option or even a default when using python 2.6 or higher?


When loading templates the FileSystemLoader follows symlinks. So that its list_templates() method don't follow symlinks, is definitely a bug. However just calling os.walk(..., followlinks=True) when using Python >=2.6, won't fix that bug for people using jinja2 with older versions of Python.


This is done now.

@mitsuhiko mitsuhiko closed this
@MiCHiLU MiCHiLU added a commit to MiCHiLU/jinja2-precompiler that referenced this issue
@MiCHiLU MiCHiLU fix do not walk symlink directories 416a104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.