+
+ // Move files from tmp transcoded directory to the appropriate place
+ const baseHlsDirectory = join(HLS_STREAMING_PLAYLIST_DIRECTORY, video.uuid)
+ await ensureDir(baseHlsDirectory)
+
+ // Move playlist file
+ const playlistPath = join(baseHlsDirectory, playlistFilename)
+ await move(playlistFileTranscodePath, playlistPath, { overwrite: true })
+ // Move video file
+ await move(join(videoTranscodedBasePath, videoFilename), videoFilePath, { overwrite: true })
+