Merged V2.1 to HEAD

6938: Fix for WCM-864 (bulk import of ZIP containing only directories and no files)
   6939: Fix for AWC-1602. Workaround for MSIE7 DOM access methods in Javascript.
   6942: Fixed bug in transaction demarcation around the patch service.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7349 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-11-12 14:40:12 +00:00
parent 3cf0420a73
commit f9a456f870
2 changed files with 9 additions and 5 deletions

View File

@@ -310,7 +310,10 @@ public class ImportWebsiteDialog
}
finally
{
ImporterActionExecuter.deleteDir(tempDir);
if (tempDir.exists())
{
ImporterActionExecuter.deleteDir(tempDir);
}
}
}
catch (IOException e)
@@ -330,6 +333,7 @@ public class ImportWebsiteDialog
ServiceRegistry services = Repository.getServiceRegistry(FacesContext.getCurrentInstance());
MimetypeService mimetypeService = services.getMimetypeService();
File topdir = new File(dir);
if (!topdir.exists()) return;
for (File file : topdir.listFiles())
{
try