mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Put private videos under a specific subdirectory
This commit is contained in:
parent
38a3ccc7f8
commit
3545e72c68
105 changed files with 2929 additions and 1308 deletions
|
@ -1,10 +1,10 @@
|
|||
import { join } from 'path'
|
||||
import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants'
|
||||
import { DIRECTORIES } from '@server/initializers/constants'
|
||||
|
||||
function getResumableUploadPath (filename?: string) {
|
||||
if (filename) return join(RESUMABLE_UPLOAD_DIRECTORY, filename)
|
||||
if (filename) return join(DIRECTORIES.RESUMABLE_UPLOAD, filename)
|
||||
|
||||
return RESUMABLE_UPLOAD_DIRECTORY
|
||||
return DIRECTORIES.RESUMABLE_UPLOAD
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue