Merge branch 'main' into refactor-repo

This commit is contained in:
Paul Gauthier 2023-07-21 15:46:31 -03:00
commit e74bfc21d0
2 changed files with 25 additions and 2 deletions

View file

@ -676,10 +676,10 @@ class Coder:
return files
def get_last_modified(self):
files = self.get_all_abs_files()
files = [Path(fn) for fn in self.get_all_abs_files() if Path(fn).exists()]
if not files:
return 0
return max(Path(path).stat().st_mtime for path in files)
return max(path.stat().st_mtime for path in files)
def get_addable_relative_files(self):
return set(self.get_all_relative_files()) - set(self.get_inchat_relative_files())