diff options
Diffstat (limited to 'src/backend/cache.py')
-rw-r--r-- | src/backend/cache.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/backend/cache.py b/src/backend/cache.py deleted file mode 100644 index ed291f0..0000000 --- a/src/backend/cache.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/python3 - -import os -import shutil -import sisyphus.filesystem - -def purge(): - if os.path.isdir(sisyphus.filesystem.portageCacheDir): - for files in os.listdir(sisyphus.filesystem.portageCacheDir): - if os.path.isfile(os.path.join(sisyphus.filesystem.portageCacheDir, files)): - os.remove(os.path.join(sisyphus.filesystem.portageCacheDir, files)) - else: - shutil.rmtree(os.path.join(sisyphus.filesystem.portageCacheDir, files)) |