From 68a6ea278206dc0ceefa9aff7a42ea40ec0d4794 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 9 Oct 2013 10:23:30 +0200 Subject: portability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/bfind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2