Commit 4d9048c7 authored by Christophe Dumez's avatar Christophe Dumez

- using thread for removeAll() in order to gain some time


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6822 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9eceaf13
......@@ -34,7 +34,7 @@ from Products.ERP5Type.Document.Folder import Folder
from Products.ERP5Type import Permissions
from Products.ERP5Subversion import _dtmldir
from Products.ERP5Subversion.SubversionClient import newSubversionClient
import os, re, commands, time, exceptions
import os, re, commands, time, exceptions, thread
from DateTime import DateTime
from cPickle import dumps, loads
from App.config import getConfiguration
......@@ -756,7 +756,7 @@ class SubversionTool(UniqueObject, Folder):
# add new files and copy
self.addNewFiles(svn_path, path, bt)
# Clean up
removeAll(path)
thread.start_new_thread(removeAll, (path,))
# return a set with directories present in the directory
def getSetDirsForDir(self, directory):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment