ActivityPub-federated video streaming platform using P2P directly in your web browser
import { mkdir, rm } from 'node:fs/promises'
import { join } from 'node:path'
const SCREENSHOTS_DIRECTORY = 'screenshots'
export async function createScreenshotsDirectory () {
await rm(SCREENSHOTS_DIRECTORY, { recursive: true, force: true })
await mkdir(SCREENSHOTS_DIRECTORY, { recursive: true })
}
export function getScreenshotPath (filename: string) {
return join(SCREENSHOTS_DIRECTORY, filename)
}