aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/prune-storage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/prune-storage.ts')
-rwxr-xr-xscripts/prune-storage.ts27
1 files changed, 12 insertions, 15 deletions
diff --git a/scripts/prune-storage.ts b/scripts/prune-storage.ts
index 12d78fdc6..bb1e8e024 100755
--- a/scripts/prune-storage.ts
+++ b/scripts/prune-storage.ts
@@ -1,22 +1,19 @@
1import { registerTSPaths } from '../server/helpers/register-ts-paths'
2registerTSPaths()
3
4import { start, get } from 'prompt'
5import { join, basename } from 'path'
6import { CONFIG } from '../server/initializers/config'
7import { VideoModel } from '../server/models/video/video'
8import { initDatabaseModels } from '../server/initializers/database'
9import { readdir, remove, stat } from 'fs-extra'
10import { VideoRedundancyModel } from '../server/models/redundancy/video-redundancy'
11import { map } from 'bluebird' 1import { map } from 'bluebird'
12import { getUUIDFromFilename } from '../server/helpers/utils' 2import { readdir, remove, stat } from 'fs-extra'
13import { ThumbnailModel } from '../server/models/video/thumbnail'
14import { ActorImageModel } from '../server/models/actor/actor-image'
15import { uniq, values } from 'lodash' 3import { uniq, values } from 'lodash'
16import { ThumbnailType } from '@shared/models' 4import { basename, join } from 'path'
17import { VideoFileModel } from '@server/models/video/video-file' 5import { get, start } from 'prompt'
18import { HLS_REDUNDANCY_DIRECTORY, HLS_STREAMING_PLAYLIST_DIRECTORY } from '@server/initializers/constants' 6import { HLS_REDUNDANCY_DIRECTORY, HLS_STREAMING_PLAYLIST_DIRECTORY } from '@server/initializers/constants'
7import { VideoFileModel } from '@server/models/video/video-file'
19import { VideoStreamingPlaylistModel } from '@server/models/video/video-streaming-playlist' 8import { VideoStreamingPlaylistModel } from '@server/models/video/video-streaming-playlist'
9import { ThumbnailType } from '@shared/models'
10import { getUUIDFromFilename } from '../server/helpers/utils'
11import { CONFIG } from '../server/initializers/config'
12import { initDatabaseModels } from '../server/initializers/database'
13import { ActorImageModel } from '../server/models/actor/actor-image'
14import { VideoRedundancyModel } from '../server/models/redundancy/video-redundancy'
15import { ThumbnailModel } from '../server/models/video/thumbnail'
16import { VideoModel } from '../server/models/video/video'
20 17
21run() 18run()
22 .then(() => process.exit(0)) 19 .then(() => process.exit(0))