X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=functions.py;h=1f4d8bb9e76dd0807dda6187a92ebf108eef770d;hp=4c15bbc551e1416458e9729e589abe3ccf7d77ce;hb=2bd16d105beb32d6706f03e4ea717e4c7af43d03;hpb=ff602f724b8fc80f4fa067dbbc830343c0b4bed4 diff --git a/functions.py b/functions.py index 4c15bbc..1f4d8bb 100644 --- a/functions.py +++ b/functions.py @@ -121,6 +121,11 @@ class History : def rmtab(self, analyse) : del self.opened[analyse['uuid']] + + def clean(self) : + corpustodel = [corpus for corpus in self.history if not os.path.exists(corpus['ira'])] + for corpus in corpustodel : + self.delete(corpus, corpus = True) def __str__(self) : return str(self.history)