X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=functions.py;h=1f4d8bb9e76dd0807dda6187a92ebf108eef770d;hp=4c15bbc551e1416458e9729e589abe3ccf7d77ce;hb=7539792168d42f09763ab021a9e0e0f8afa3bf07;hpb=abb846ef2ccc94411e3531dca062b75a2809b212 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)