mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-11834 IIS ACL Permissions when creating foundation/bootstrap projects from templates
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user