Reads the content of a file as a File object (Blob with name).
File
The absolute path of the file to read.
A promise that resolves to an AsyncIOResult containing the File object.
AsyncIOResult
1.0.0
encoding: 'blob'
(await readBlobFile('/path/to/file.txt')) .inspect(file => console.log(file.name, file.size, file.type)); Copy
(await readBlobFile('/path/to/file.txt')) .inspect(file => console.log(file.name, file.size, file.type));
Reads the content of a file as a
Fileobject (Blob with name).