diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-10-09 03:40:33 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-10-09 03:40:33 +0200 |
commit | 47b42f771f8db3dcb49e21afd911eea493209aff (patch) | |
tree | 6e49e18c328276712651616a986103ca821fe564 /src | |
parent | m readme + implement -0 (diff) | |
download | bfind-47b42f771f8db3dcb49e21afd911eea493209aff.tar.gz bfind-47b42f771f8db3dcb49e21afd911eea493209aff.tar.bz2 bfind-47b42f771f8db3dcb49e21afd911eea493209aff.tar.xz |
bug fixes
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/bfind.py | 5 |
1 files 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 |