aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-12-18 02:37:18 +0100
committerMattias Andrée <maandree@operamail.com>2013-12-18 02:37:35 +0100
commit4e5062b35dbb690a27f9d67d4ec37f347ab1c5d3 (patch)
tree3e42eb8c58ac78e8186b5661ab31fd69fd3cbd78 /src
parenttypo (diff)
downloadbfind-4e5062b35dbb690a27f9d67d4ec37f347ab1c5d3.tar.gz
bfind-4e5062b35dbb690a27f9d67d4ec37f347ab1c5d3.tar.bz2
bfind-4e5062b35dbb690a27f9d67d4ec37f347ab1c5d3.tar.xz
fix bug in -v with implicit root path2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bfind.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bfind.py b/src/bfind.py
index c757875..ccedfd3 100755
--- a/src/bfind.py
+++ b/src/bfind.py
@@ -53,8 +53,11 @@ else:
while len(queue) > 0:
path = queue[0]
queue[:] = queue[1:]
- if visible and ((os.sep + '.') in path[start_len:]):
- continue
+ if visible:
+ if (os.sep + '.') in path[start_len:]:
+ continue
+ elif (start_len == 0) and path.startswith('.'):
+ continue
if hardlinks:
stat = os.stat(path)
stat = (stat.st_dev, stat.st_ino)