[gnome-music] query: Do not recursively walk over the inspected directories
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] query: Do not recursively walk over the inspected directories
- Date: Sat, 26 Nov 2016 15:51:40 +0000 (UTC)
commit 504305de0b010b76203f6a81ed71aad2c80737f5
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Nov 26 16:47:52 2016 +0100
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.
gnomemusic/query.py | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index 368913e..22d4245 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -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>'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]