Skip to content

Loading…

Allow FileSystemLoader to follow symlinks #71

Closed
rawsource opened this Issue · 2 comments

3 participants

@rawsource

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?

@snoack

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.

@mitsuhiko
Owner

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.