aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-10-09 10:23:30 +0200
committerMattias Andrée <maandree@operamail.com>2013-10-09 10:23:30 +0200
commit68a6ea278206dc0ceefa9aff7a42ea40ec0d4794 (patch)
treef18fed98e4826593f407e583007cd12fa6c670be /src
parentm (diff)
downloadbfind-68a6ea278206dc0ceefa9aff7a42ea40ec0d4794.tar.gz
bfind-68a6ea278206dc0ceefa9aff7a42ea40ec0d4794.tar.bz2
bfind-68a6ea278206dc0ceefa9aff7a42ea40ec0d4794.tar.xz
portability
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bfind.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bfind.py b/src/bfind.py
index bf88d06..081a8d0 100755
--- a/src/bfind.py
+++ b/src/bfind.py
@@ -52,7 +52,7 @@ else:
while len(queue) > 0:
path = queue[0]
queue[:] = queue[1:]
- if visible and (path.startswith('.') or ('/.' in path)):
+ if visible and (path.startswith('.') or ((os.sep + '.') in path)):
continue
if hardlinks:
stat = os.stat(path)