From 315e528bb31f6a1abfda0bd1e3c81d982d6ead44 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Sun, 16 Sep 2007 21:25:15 -0700 Subject: [PATCH] When cleaning the cache of objects, don't be so verbose. Change the command for cleaning from "rm -rv", dropping the "-v". --- lbs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbs.py b/lbs.py index e3ca9ab..f0cae55 100644 --- a/lbs.py +++ b/lbs.py @@ -128,7 +128,7 @@ class ObjectStore: def cleanup(self): if self.cachedir is not None: # TODO: Avoid use of system, make this safer - os.system("rm -rv " + self.cachedir) + os.system("rm -rf " + self.cachedir) self.cachedir = None @staticmethod @@ -192,7 +192,7 @@ class ObjectStore: if segment in self.lru_list: self.lru_list.remove(segment) self.lru_list.append(segment) while len(self.lru_list) > self.CACHE_SIZE: - os.system("rm -rv " + os.path.join(self.cachedir, self.lru_list[0])) + os.system("rm -rf " + os.path.join(self.cachedir, self.lru_list[0])) self.lru_list = self.lru_list[1:] return open(path, 'rb').read() -- 2.20.1