mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-16 21:55:29 +01:00
⬆️
This commit is contained in:
parent
9048b9e52f
commit
dc91c25941
2 changed files with 2 additions and 2 deletions
|
|
@ -322,7 +322,7 @@ ${response.data.replace("%pages", "<span class=totalPages></span>").replace("%pa
|
|||
fs.readdir(dir, function (err, files) {
|
||||
files = files.map(file => path.join(dir, file)); // a/b a/m
|
||||
Promise.all(files.map(file => removePromise(file))).then(function () {
|
||||
fs.rmdir(dir, resolve);
|
||||
fs.rm(dir, resolve);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue