aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)