def unlink_paths_older_than(filepaths, mtime):
 for fpath in filepaths:
  try:
   if (os.path.getmtime(fpath) < mtime):
    os.unlink(fpath)
  except OSError:
   pass

def unlink_paths_older_than ( filepaths , mtime ) : for fpath in filepaths : try : if ( os . path . getmtime ( fpath ) < mtime ) : os . unlink ( fpath ) except OSError : pass
remove any files from the given list that that were last modified before mtime .