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