diff options
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 |