mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02:00
Update FSPersistorManager.coffee
Do not propagate the error if trying to delete a directory that does not exist.
This commit is contained in:
@@ -60,7 +60,10 @@ module.exports =
|
||||
filteredName = filterName name
|
||||
fs.rmdir "#{location}/#{filteredName}", (err) ->
|
||||
logger.err err:err, location:location, name:filteredName, "Error on rmdir."
|
||||
callback err
|
||||
if err and err.errno != 34
|
||||
callback err
|
||||
else
|
||||
callback()
|
||||
|
||||
checkIfFileExists:(location, name, callback = (err,exists)->)->
|
||||
filteredName = filterName name
|
||||
|
||||
Reference in New Issue
Block a user