mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
files_changed: cleanup and add a test
This commit is contained in:
parent
4f95b9f05c
commit
39bdbcfd86
2 changed files with 20 additions and 5 deletions
|
|
@ -210,9 +210,6 @@ LAST_MTIME = 0
|
|||
def files_changed(path, extensions):
|
||||
"""Return True if the files have changed since the last check"""
|
||||
|
||||
def with_extension(f):
|
||||
return any(f.endswith(ext) for ext in extensions)
|
||||
|
||||
def file_times(path):
|
||||
"""Return the last time files have been modified"""
|
||||
for root, dirs, files in os.walk(path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue