aboutsummaryrefslogtreecommitdiffstats
path: root/src/bfind.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-10-09 03:40:33 +0200
committerMattias Andrée <maandree@operamail.com>2013-10-09 03:40:33 +0200
commit47b42f771f8db3dcb49e21afd911eea493209aff (patch)
tree6e49e18c328276712651616a986103ca821fe564 /src/bfind.py
parentm readme + implement -0 (diff)
downloadbfind-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 '')
-rwxr-xr-xsrc/bfind.py5
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