- const videoCaptionsDir = CONFIG.STORAGE.CAPTIONS_DIR
- const destination = join(videoCaptionsDir, videoCaption.getCaptionName())
- await renamePromise(videoCaptionPhysicalFile.path, destination)
- // This is important in case if there is another attempt in the retry process
- videoCaptionPhysicalFile.filename = videoCaption.getCaptionName()
- videoCaptionPhysicalFile.path = destination