summaryrefslogtreecommitdiffstats
path: root/tools/scripts/take_snapshot.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/scripts/take_snapshot.py')
-rwxr-xr-xtools/scripts/take_snapshot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scripts/take_snapshot.py b/tools/scripts/take_snapshot.py
index 8c5d1604..3b467588 100755
--- a/tools/scripts/take_snapshot.py
+++ b/tools/scripts/take_snapshot.py
@@ -256,7 +256,7 @@ def clearDirectory(directory):
os.chdir(directory)
print 'clearing the directory:' + directory
for direntry in os.listdir(directory):
- if not direntry == '.git':
+ if not direntry == '.git' and os.path.isdir(direntry):
print 'clearing:' + direntry
shutil.rmtree(direntry)
os.chdir(currentDir)