mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 10:08:40 -05:00
Avoid recursion in version control repositories.
This commit is contained in:
parent
07f5dd0c83
commit
6ca6082e19
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ class StartQT4(QMainWindow):
|
||||||
Walks a directory, and executes a callback on each file
|
Walks a directory, and executes a callback on each file
|
||||||
"""
|
"""
|
||||||
dir = path.abspath(dir)
|
dir = path.abspath(dir)
|
||||||
for file in [file for file in listdir(dir) if not file in [".",".."]]:
|
for file in [file for file in listdir(dir) if not file in [".","..",".svn",".git",".hg",".bzr",".cvs"]]:
|
||||||
nfile = path.join(dir, file)
|
nfile = path.join(dir, file)
|
||||||
|
|
||||||
if path.isdir(nfile):
|
if path.isdir(nfile):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue