D-Bus Testing: fixed scanFiles

It behaved differently than its C++ counterpart.
This commit is contained in:
Krzesimir Nowak 2012-04-17 14:38:15 +02:00 committed by Patrick Ohly
parent 3f6acb598b
commit 8382cb1b49
1 changed files with 1 additions and 1 deletions

View File

@ -3489,7 +3489,7 @@ def scanFiles(root, peer = '', onlyProps = True, directory = ''):
for entry in sorted(os.listdir(newroot)):
fullEntry = newroot + "/" + entry
if os.path.isdir(fullEntry):
if not (entry.endswith("/peers") and peer and entry != peer):
if not (newroot.endswith("/peers") and peer and entry != peer):
if directory:
newdir = directory + '/' + entry
else: