X-Git-Url: http://dolda2000.com/gitweb/?p=automanga.git;a=blobdiff_plain;f=manga%2Fprofile.py;fp=manga%2Fprofile.py;h=2b7a15a4385c63fed7093ee736afd108ae43caad;hp=cc0a4a1dc69e618a2648662ce7165f9f557bca77;hb=61e4bd12084cc2bf0c42f4e4855ee40b08f73941;hpb=30de450b848129912074e63adc019ea383cdefbd diff --git a/manga/profile.py b/manga/profile.py index cc0a4a1..2b7a15a 100644 --- a/manga/profile.py +++ b/manga/profile.py @@ -219,6 +219,12 @@ class filemanga(manga): else: f.write(consline("lset", key, *val) + "\n") + def mtime(self): + try: + return os.stat(self.path).st_mtime + except FileNotFoundError: + return 0 + class profile(object): def __init__(self, dir): self.dir = dir