Watch for changes in mtime of symlinked folders and files too

This commit is contained in:
guanidene 2015-06-30 20:56:21 +05:30
commit ba9b4a1d9b

View file

@ -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: