mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 23:03:56 +00:00
Update FSPersistorManager.coffee
Do not propagate the error if trying to delete a directory that does not exist.
This commit is contained in:
parent
a9be97622b
commit
1e42221954
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue