Skip to content
Snippets Groups Projects
Commit c16922f7 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Add cleanup_cache function in unix

This function will remove regular files under /var/cache
parent feab499d
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,10 @@ class Unix(OSBase):
self.cleanup_tmp()
self.cleanup_log()
self.cleanup_mail()
self.cleanup_cache()
def cleanup_cache(self):
self.foreach_file('/var/cache', self.g.rm, ftype='r')
def cleanup_tmp(self):
self.foreach_file('/tmp', self.g.rm_rf, maxdepth=1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment