minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-09-24 03:30:23 +03:00
parent a635f18b6b
commit 9219794848
2 changed files with 10 additions and 6 deletions

View File

@ -2083,7 +2083,9 @@ module.System = {
console.log('DELETE:', target.path)
target.delete('**')
target.isPattern ?
target.delete()
: target.delete('**')
// redirect...
this.renderer
@ -2104,10 +2106,13 @@ module.System = {
console.log('MOVE:', from.path, to)
to
&& await from.get('**').move(
/^[\\\/]/.test(to[0]) ?
to
: pwpath.join('..', to))
&& await (from.isPattern ?
from
: from.get('**'))
.move(
/^[\\\/]/.test(to[0]) ?
to
: pwpath.join('..', to))
// redirect...
this.renderer

View File

@ -13,7 +13,6 @@
* ...seems to be at least a problem with macros eating up quotes...
* do not see how we can resolve this issue transparently in any
* way other than disallowing quotes...
* XXX BUG??? renaming a page does not rename sub-pages...
* XXX BUG: for some reason deleting and refreshing takes ~2x as long as
* refreshing...
* to reproduce: