1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

replace fs by fs-extra to prevent EMFILE error

This commit is contained in:
Rigel Kent 2018-08-27 13:28:49 +02:00 committed by Chocobozzz
parent 0ee027347a
commit c9d5c64f98
18 changed files with 19 additions and 20 deletions

View file

@ -6,8 +6,7 @@
import * as bcrypt from 'bcrypt'
import * as createTorrent from 'create-torrent'
import { createHash, pseudoRandomBytes } from 'crypto'
import { copyFile, readdir, readFile, rename, stat, Stats, unlink, writeFile } from 'fs'
import * as mkdirp from 'mkdirp'
import { copyFile, readdir, readFile, rename, stat, Stats, unlink, writeFile, mkdirp } from 'fs-extra'
import { isAbsolute, join } from 'path'
import * as pem from 'pem'
import * as rimraf from 'rimraf'