import { copy, ensureDir, pathExists, readdir, readFile, remove } from 'fs-extra'
import { join } from 'path'
import { randomInt } from '../../core-utils/miscs/miscs'
-import { Video, VideoChannel } from '../../models/videos'
+import { VideoChannel } from '../../models/videos'
import { buildServerDirectory, getFileSize, isGithubCI, root, wait } from '../miscs/miscs'
import { makeGetRequest } from '../requests/requests'
customConfigFile?: string
accessToken?: string
+ refreshToken?: string
videoChannel?: VideoChannel
video?: {
uuid: string
name?: string
url?: string
+
account?: {
name: string
}
+
+ embedPath?: string
}
remoteVideo?: {
}
async function checkTmpIsEmpty (server: ServerInfo) {
- await checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css', 'hls' ])
+ await checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css', 'hls', 'resumable-uploads' ])
if (await pathExists(join('test' + server.internalServerNumber, 'tmp', 'hls'))) {
await checkDirectoryIsEmpty(server, 'tmp/hls')