FileIO

Methods

(inner) ProduceResultsFilename() → {string}

Generates a search-output file name in the format "Results_<TIMESTAMP>.csv".
Returns:
Type
string
Source:

(inner) ReadDataFile(path, result) → {Promise.<void>}

Performs the async filesystem reads, and writes the output to the "results" object. Relays exceptions to the main error-handling utility.
Parameters:
Name Type Description
path string
result FileIOResult
Returns:
Type
Promise.<void>
Source:

(inner) WriteResultsFile(fileName, directory, dataToWrite) → {Promise.<void>}

Performs the async filesystem writes. Builds a platform appropriate path from the directory and file names. Relays exceptions to the main error-handling utility.
Parameters:
Name Type Description
fileName string
directory string
dataToWrite string
Returns:
Type
Promise.<void>
Source:

(inner) WriteSystemPath(directory, fileName) → {string}

Assemble a directory and filename with the system-appropriate slashes.
Parameters:
Name Type Description
directory string
fileName string
Returns:
Type
string
Source: