mirror of
https://codeberg.org/TicklishHoneyBee/CLIte.git
synced 2026-03-11 09:04:37 +00:00
more missing checks in vfs api
This commit is contained in:
parent
2dcce5b399
commit
129c6ff315
1 changed files with 4 additions and 0 deletions
|
|
@ -1785,10 +1785,14 @@ clite.vfs = {
|
|||
var n = vfsdata.api.getNode(uid,path);
|
||||
if (!n || (n.data.isdir && n.data.content.length > 0))
|
||||
return false;
|
||||
if (!checkCanWrite(uid,n))
|
||||
return false;
|
||||
var dir = clite.lib.dirname(path);
|
||||
var parent = vfsdata.api.getNode(0,dir);
|
||||
if (!parent)
|
||||
return false;
|
||||
if (!checkCanWrite(uid,parent))
|
||||
return false;
|
||||
var c = [];
|
||||
parent.data.content.forEach(function(nn) {
|
||||
if (nn == n)
|
||||
|
|
|
|||
Loading…
Reference in a new issue