mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-20 04:13:39 +00:00
Merge pull request #14 from c4live/master
Update FileHandler.coffee: ignore any error that happens while deleting ...
This commit is contained in:
commit
142db9dc4e
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.code != 'ENOENT'
|
||||
callback err
|
||||
else
|
||||
callback()
|
||||
|
||||
checkIfFileExists:(location, name, callback = (err,exists)->)->
|
||||
filteredName = filterName name
|
||||
|
|
Loading…
Add table
Reference in a new issue