From 47b42f771f8db3dcb49e21afd911eea493209aff Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 9 Oct 2013 03:40:33 +0200 Subject: bug fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/bfind.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bfind.py b/src/bfind.py index 6dc67d9..342e002 100755 --- a/src/bfind.py +++ b/src/bfind.py @@ -26,6 +26,7 @@ hardlinks = False symlinks = False visible = False ending = '\n'.encode('utf-8') +dashed = False path = '' for arg in sys.argv[1:]: @@ -44,12 +45,12 @@ queue = None start_dev = os.stat(path if path != '' else '.').st_dev if path == '': - queue = [os.listdir()] + queue = os.listdir() else: queue = [path] while len(queue) > 0: - path = queue[1] + path = queue[0] queue[:] = queue[1:] if visible and (path.startswith('.') or ('/.' in path)): continue -- cgit v1.2.3-70-g09d2