mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-13184 cleanup
This commit is contained in:
@@ -45,7 +45,8 @@ public class DeleteAction extends PatchAction {
|
||||
@Override
|
||||
protected void doApply(ZipFile patchFile, File backupDir, File toFile) throws IOException {
|
||||
//NOTE: a folder can be deleted only in case if it does not contain any user's files/folders.
|
||||
if (!toFile.isDirectory() || (toFile.listFiles() != null && toFile.listFiles().length == 0)) {
|
||||
File[] listFiles = toFile.listFiles();
|
||||
if (!toFile.isDirectory() || (listFiles != null && listFiles.length == 0)) {
|
||||
Utils.delete(toFile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user