Commit aacdc0c4 authored by Nicolas Delaby's avatar Nicolas Delaby

Support directory and file deletion

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17297 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 34f0a5b3
...@@ -1058,7 +1058,11 @@ class SubversionTool(BaseTool, UniqueObject, Folder): ...@@ -1058,7 +1058,11 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
# Security hole fix # Security hole fix
raise SubversionSecurityError, 'You are not allowed to delete these files' raise SubversionSecurityError, 'You are not allowed to delete these files'
for file_path in path_list: for file_path in path_list:
shutil.rmtree(self._getWorkingPath(file_path)) real_path = self._getWorkingPath(file_path)
if os.path.isdir(real_path):
shutil.rmtree(self._getWorkingPath(file_path))
elif os.path.isfile(real_path):
os.remove(real_path)
def getModifiedTree(self, business_template, show_unmodified=False) : def getModifiedTree(self, business_template, show_unmodified=False) :
""" Return tree of files returned by svn status """ Return tree of files returned by svn status
......
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