mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-28 23:22:35 +00:00
execute success callback when filesystem copyfile completed
This commit is contained in:
parent
72ebaea5e2
commit
dad209262f
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ module.exports =
|
|||
targetStream.on 'error', (err) ->
|
||||
logger.err err:err, location:location, key:filteredToName, "Error writing to file"
|
||||
callback err
|
||||
targetStream.on 'finish', () ->
|
||||
callback null
|
||||
sourceStream.pipe targetStream
|
||||
|
||||
deleteFile: (location, name, callback)->
|
||||
|
|
Loading…
Reference in a new issue