Store file paths and timestamps in a sqlite database, then compare the timestamps to see if any files have changed.