mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-01 21:09:17 -06:00
15 lines
376 B
TypeScript
15 lines
376 B
TypeScript
import { join } from 'path'
|
|
import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants'
|
|
|
|
function getResumableUploadPath (filename?: string) {
|
|
if (filename) return join(RESUMABLE_UPLOAD_DIRECTORY, filename)
|
|
|
|
return RESUMABLE_UPLOAD_DIRECTORY
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
getResumableUploadPath
|
|
}
|