graphdb
Version:
Javascript client library supporting GraphDB and RDF4J REST API.
22 lines (21 loc) • 659 B
TypeScript
export = FileUtils;
/**
* Utilities related to working with files and the file system.
*
* @class
* @author Mihail Radkov
* @author Svilen Velikov
*/
declare class FileUtils {
/**
* Opens a readable stream from a file located at the provided file path.
*
* If the file path is blank or points to non existent file, the method will
* result in an error.
*
* @param {string} filePath path to the file to be read
* @return {ReadableStream} stream with the file data
* @throws {Error} if the file path is not provided or no file exists for it
*/
static getReadStream(filePath: string): ReadableStream;
}