gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r627414 - /gump/live/python/gump/util/tools.py
Date Wed, 13 Feb 2008 13:59:17 GMT
Author: bodewig
Date: Wed Feb 13 05:59:13 2008
New Revision: 627414

URL: http://svn.apache.org/viewvc?rev=627414&view=rev
Log:
somehow I failed to merge this change, wipeDirectoryTree takes an optional second argument

Modified:
    gump/live/python/gump/util/tools.py

Modified: gump/live/python/gump/util/tools.py
URL: http://svn.apache.org/viewvc/gump/live/python/gump/util/tools.py?rev=627414&r1=627413&r2=627414&view=diff
==============================================================================
--- gump/live/python/gump/util/tools.py (original)
+++ gump/live/python/gump/util/tools.py Wed Feb 13 05:59:13 2008
@@ -178,13 +178,13 @@
             transferAnnotations(sync, annotatable)                
     return changes
             
-def wipeDirectoryTree(dir):
+def wipeDirectoryTree(dir, recreateDir = True):
     log.info('Wipe Directory [' + `dir` + ']') 
     if os.path.exists(dir):
         try:
             shutil.rmtree(dir)            
         except: pass
-    if not os.path.exists(dir):
+    if recreateDir and not os.path.exists(dir):
         os.makedirs(dir)
                 
 def tailFile(file,lines,wrapLen=0,eol=None,marker=None):



Mime
View raw message