Commits

Rhys ! committed 1f2921a

added ignore_mtime kwarg to sweep

  • Participants
  • Parent commits c9b9df7

Comments (0)

Files changed (1)

itsuki/converter.py

                 if not fname.endswith(t[1]):
                     yield fname, t
 
-    def sweep(self):
+    def sweep(self, ignore_mtime=False):
         for fname, t in self.all_targets():
             f = self.compiled_path(fname, t[0], t[1])
-            if not path.exists(f) or os.stat(fname)[ST_MTIME] > os.stat(f)[ST_MTIME]:
+            if not path.exists(f) or ignore_mtime or os.stat(fname)[ST_MTIME] > os.stat(f)[ST_MTIME]:
                 t[2](fname, f)