From 40298b02546e8225dd21bf6048fe7f224aefc32a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 2 Oct 2017 12:20:26 +0200 Subject: Implement video transcoding on server side --- server/helpers/core-utils.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'server/helpers/core-utils.ts') diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts index 2ec7e6515..3118dc500 100644 --- a/server/helpers/core-utils.ts +++ b/server/helpers/core-utils.ts @@ -11,7 +11,9 @@ import { rename, unlink, writeFile, - access + access, + stat, + Stats } from 'fs' import * as mkdirp from 'mkdirp' import * as bcrypt from 'bcrypt' @@ -92,6 +94,7 @@ const bcryptGenSaltPromise = promisify1(bcrypt.genSalt) const bcryptHashPromise = promisify2(bcrypt.hash) const createTorrentPromise = promisify2(createTorrent) const rimrafPromise = promisify1WithVoid(rimraf) +const statPromise = promisify1(stat) // --------------------------------------------------------------------------- @@ -115,5 +118,6 @@ export { bcryptGenSaltPromise, bcryptHashPromise, createTorrentPromise, - rimrafPromise + rimrafPromise, + statPromise } -- cgit v1.2.3