customConfigFile?: string
accessToken?: string
+ refreshToken?: string
videoChannel?: VideoChannel
video?: {
uuid: string
name?: string
url?: string
+
account?: {
name: string
}
+
+ embedPath?: string
}
remoteVideo?: {
return server
}
-function checkTmpIsEmpty (server: ServerInfo) {
- return checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css' ])
+async function checkTmpIsEmpty (server: ServerInfo) {
+ await checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css', 'hls', 'resumable-uploads' ])
+
+ if (await pathExists(join('test' + server.internalServerNumber, 'tmp', 'hls'))) {
+ await checkDirectoryIsEmpty(server, 'tmp/hls')
+ }
}
async function checkDirectoryIsEmpty (server: ServerInfo, directory: string, exceptions: string[] = []) {