mirror of
https://codeberg.org/TicklishHoneyBee/CLIte.git
synced 2026-03-11 09:04:37 +00:00
fix bugs with scripts not restoring properly
This commit is contained in:
parent
e478a13f61
commit
a6cfae3762
1 changed files with 8 additions and 2 deletions
|
|
@ -2567,8 +2567,14 @@ clite.vfs = {
|
|||
if (!n)
|
||||
return false;
|
||||
}
|
||||
if (clite.lib.getFileType({node:n}) != type)
|
||||
return false;
|
||||
let ntype = clite.lib.getFileType({node:n});
|
||||
if (ntype != type) {
|
||||
if (!(
|
||||
(ntype == clite.io.types.FT_SCRIPT || ntype == clite.io.types.FT_TEXT)
|
||||
&& (type == clite.io.types.FT_SCRIPT || type == clite.io.types.FT_TEXT)
|
||||
))
|
||||
return false;
|
||||
}
|
||||
|
||||
n.uid = uid;
|
||||
n.gid = gid;
|
||||
|
|
|
|||
Loading…
Reference in a new issue