Skeudenn / main/services/comic-archive / readWholeFile
Function: readWholeFile() ​
readWholeFile(
filePath,maxBytes?):Promise<Buffer<ArrayBufferLike>>
Defined in: src/main/services/comic-archive.ts:43
The whole content of filePath, refused with a translated error (naming the size and the limit) when the file is above maxBytes, before anything is read.
Parameters ​
filePath ​
string
maxBytes? ​
number = MAX_WHOLE_FILE_SIZE
Returns ​
Promise<Buffer<ArrayBufferLike>>