mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
ImportHandler: Use asynchronous rename instead of fs.renameSync()
This commit is contained in:
parent
c7b1abebe4
commit
5b1b030906
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ const doImport = async (req, res, padId) => {
|
|||
// See https://github.com/ether/etherpad-lite/issues/2572
|
||||
if (fileIsHTML || !useConvertor) {
|
||||
// if no convertor only rename
|
||||
fs.renameSync(srcFile, destFile);
|
||||
await fsp_rename(srcFile, destFile);
|
||||
} else {
|
||||
// @TODO - no Promise interface for convertors (yet)
|
||||
await new Promise((resolve, reject) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue