aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/webtorrent.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-08-27 13:28:49 +0200
committerChocobozzz <me@florianbigard.com>2018-08-27 16:03:57 +0200
commitc9d5c64f98c1f1fe7950de60c58edeaf3ace070d (patch)
tree26d828e560054cf8a64628823d3dd86172d44f52 /server/helpers/webtorrent.ts
parent0ee027347ae09ea397e9b85702707e9179537ebd (diff)
downloadPeerTube-c9d5c64f98c1f1fe7950de60c58edeaf3ace070d.tar.gz
PeerTube-c9d5c64f98c1f1fe7950de60c58edeaf3ace070d.tar.zst
PeerTube-c9d5c64f98c1f1fe7950de60c58edeaf3ace070d.zip
replace fs by fs-extra to prevent EMFILE error
Diffstat (limited to 'server/helpers/webtorrent.ts')
-rw-r--r--server/helpers/webtorrent.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/webtorrent.ts b/server/helpers/webtorrent.ts
index 6f2adb3cb..1c0d00d70 100644
--- a/server/helpers/webtorrent.ts
+++ b/server/helpers/webtorrent.ts
@@ -1,7 +1,7 @@
1import { logger } from './logger' 1import { logger } from './logger'
2import { generateVideoTmpPath } from './utils' 2import { generateVideoTmpPath } from './utils'
3import * as WebTorrent from 'webtorrent' 3import * as WebTorrent from 'webtorrent'
4import { createWriteStream } from 'fs' 4import { createWriteStream } from 'fs-extra'
5import { CONFIG } from '../initializers' 5import { CONFIG } from '../initializers'
6import { join } from 'path' 6import { join } from 'path'
7import { unlinkPromise } from './core-utils' 7import { unlinkPromise } from './core-utils'