Commit 504305de authored by Carlos Garnacho's avatar Carlos Garnacho

query: Do not recursively walk over the inspected directories

This is not necessary as all relevant queries are done through tracker,
should save some time on Query object initialization.
parent c624a9d0
......@@ -57,9 +57,6 @@ class Query():
for folder in [Query.music_folder]:
if os.path.islink(folder):
logger.warn("%s is a symlink, this folder will be omitted", folder)
else:
i = len(next(os.walk(folder)))
logger.debug("Found %d files in %s", i, folder)
def __repr__(self):
return '<Query>'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment