mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #1776 from guanidene/master
Watch for changes in mtime of symlinked folders and files too
This commit is contained in:
commit
2332563bda
1 changed files with 1 additions and 1 deletions
|
|
@ -576,7 +576,7 @@ def folder_watcher(path, extensions, ignores=[]):
|
|||
def file_times(path):
|
||||
'''Return `mtime` for each file in path'''
|
||||
|
||||
for root, dirs, files in os.walk(path):
|
||||
for root, dirs, files in os.walk(path, followlinks=True):
|
||||
dirs[:] = [x for x in dirs if not x.startswith(os.curdir)]
|
||||
|
||||
for f in files:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue