mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(operation) shift + delete: delete ".." directory
This commit is contained in:
parent
a95e6e73e5
commit
bf15897cc0
1 changed files with 8 additions and 5 deletions
|
|
@ -273,11 +273,11 @@
|
|||
}
|
||||
|
||||
if (name === '..')
|
||||
Dialog.alert.noFiles(TITLE);
|
||||
else
|
||||
Dialog.confirm(TITLE, msg, {cancel: false}).then(function() {
|
||||
deleteSilent(files);
|
||||
});
|
||||
return Dialog.alert.noFiles(TITLE);
|
||||
|
||||
Dialog.confirm(TITLE, msg, {cancel: false}).then(function() {
|
||||
deleteSilent(files);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -292,6 +292,9 @@
|
|||
path = Info.dirPath,
|
||||
name = Info.name;
|
||||
|
||||
if (name === '..')
|
||||
return Dialog.alert.noFiles(TITLE);
|
||||
|
||||
showLoad();
|
||||
|
||||
if (!files)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue