find-junk: add ~/.cache/tracker to list of junk directories

This commit is contained in:
neingeist 2015-07-01 06:51:42 +02:00
parent 9273822038
commit eaef668c0f

View file

@ -14,7 +14,8 @@ M = 1024*1024
def junk_dirs():
"""Return directories which potentially contain junk"""
for d in ['~/tmp', '~/.local/share/Trash', '~/rpmbuild', '~/RPM']:
for d in ['~/tmp', '~/.local/share/Trash', '~/rpmbuild', '~/RPM',
'~/.cache/tracker']:
d = os.path.expanduser(d)
if os.path.exists(d):
yield d