From 6a3024fe5953f51b51a7b9c2867d59c9e54c6d03 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Thu, 19 Mar 2015 15:39:20 +0530 Subject: tools/glusterfind: Ignore .trashcan dir during Brick Crawl BUG: 1203650 Change-Id: Icf81726ad34bd5cfec6d8e06763b02a159e84c2e Signed-off-by: Aravinda VK Reviewed-on: http://review.gluster.org/10010 Reviewed-by: Kotresh HR Reviewed-by: Prashanth Pai Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY --- tools/glusterfind/src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/glusterfind/src/utils.py') diff --git a/tools/glusterfind/src/utils.py b/tools/glusterfind/src/utils.py index c503a2b9f58..de9c027e299 100644 --- a/tools/glusterfind/src/utils.py +++ b/tools/glusterfind/src/utils.py @@ -21,7 +21,7 @@ ROOT_GFID = "00000000-0000-0000-0000-000000000001" def find(path, callback_func=lambda x: True, filter_func=lambda x: True, ignore_dirs=[], subdirs_crawl=True): - if os.path.basename(path) in ignore_dirs: + if path in ignore_dirs: return if filter_func(path): -- cgit