

Removes files and / or directories returned by a call to fileLib.dirList (mask, options). Returns true if the files are equal, false followed by an error message if they are different. When given, it should be a relative tolerance (0.1 means 10%, 0.01 means 1%, and so on). For both "log" and "nf" formats, if no tolerance is given, the numbers are compared with the standard = operator. The default when this parameter is missing is "text"

Numeric values on data lines are compared as such using the provided tolerance. 'nf' - Compares two Neutral files generated by GeMA. Lines between GeMA_BEGIN and GeMA_END lines will be interpreted and numeric values compared as such using the provided tolerance. 'log' - Compares two GeMA log files generated with the -regression command line flag. Optional parameter defining the comparisson type. The path for the second file to be compared. The path for the first file to be compared. The given paths can contain macro names and/or any kind of path separators. For non text based comparisson, the tolerance parameter can be used to provide a tolerance to be used on numerical value comparissons. The format parameter defines the type of comparisson. Local fileh = fileLib.fileOpen('$SIMULATIONDIR/abc.txt', 'w')įileLib.fileCompare(file1, file2, format, tolerance)Ĭompares two files, returning true if the files are equal. Stored values con be either "windows" or "linux". Returns the type of the platform where the simulation is running.
FILELIB FOLDER WINDOWS
All the provided functions support both Windows and Linux style path separators ( \ or /) and path macro expansion, making it unnecessary to make use of the translatePath () function. FileLib is a set of utilitary functions for file and directory manipulation, complementing the standard functions provided by the os Lua functions.
