WEB-11834 IIS ACL Permissions when creating foundation/bootstrap projects from templates

This commit is contained in:
Sergey Simonchik
2014-04-17 19:58:28 +04:00
parent b875e626af
commit 339e7d6b02
@@ -131,9 +131,9 @@ public class ZipUtil {
else {
dirToMove = unzipToDir;
}
if (!FileUtil.moveDirWithContent(dirToMove, targetDir)) {
FileUtil.copyDirContent(dirToMove, targetDir);
}
// Don't "FileUtil.moveDirWithContent(dirToMove, targetDir)"
// because a file moved with "java.io.File.renameTo" won't inherits its new parent's permissions
FileUtil.copyDirContent(dirToMove, targetDir);
FileUtil.delete(unzipToDir);
}
}