aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/cache
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/lib/cache
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/lib/cache')
-rw-r--r--server/lib/cache/abstract-video-static-file-cache.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/cache/abstract-video-static-file-cache.ts b/server/lib/cache/abstract-video-static-file-cache.ts
index 8e895cc82..3e20c5d2a 100644
--- a/server/lib/cache/abstract-video-static-file-cache.ts
+++ b/server/lib/cache/abstract-video-static-file-cache.ts
@@ -1,5 +1,5 @@
1import * as AsyncLRU from 'async-lru' 1import * as AsyncLRU from 'async-lru'
2import { createWriteStream } from 'fs' 2import { createWriteStream } from 'fs-extra'
3import { unlinkPromise } from '../../helpers/core-utils' 3import { unlinkPromise } from '../../helpers/core-utils'
4import { logger } from '../../helpers/logger' 4import { logger } from '../../helpers/logger'
5import { VideoModel } from '../../models/video/video' 5import { VideoModel } from '../../models/video/video'