mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-29 03:53:59 -06:00
15 lines
370 B
TypeScript
15 lines
370 B
TypeScript
import { join } from 'path'
|
|
import { DIRECTORIES } from '@server/initializers/constants'
|
|
|
|
function getResumableUploadPath (filename?: string) {
|
|
if (filename) return join(DIRECTORIES.RESUMABLE_UPLOAD, filename)
|
|
|
|
return DIRECTORIES.RESUMABLE_UPLOAD
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
getResumableUploadPath
|
|
}
|