Path Names

All (non-absolute) filenames are relative to the directory where the configuration file is located. This includes all relative paths (or files without a path) found in the yaml file.

Under Windows, there are two absolute path formats supported, drive letter (D:\path) or UNC (\\server\share).

Under Linux, absolute paths start with a slash (”/”).

A BasePath option can be added to the config file to override the current working directory.

# loadsheets config
Description: OReilly Loadsheet
BasePath:   "d:/loadsheets/OReilly"
OutputFile: "../Output/MicroGard_{date}.xlsx"
LogFile:    "../Logs/MicroGard_{date}.txt"

The OutputFile and LogFile options are also available for overriding default filenames and you can include a special {date} macro which is replaced by today’s date. In the example above, OutputFile would be, for example, d:\loadsheets\Output\MicroGard_2020-12-04.xlsx (because it is the parent of the BasePath directory).

./represents the current directory
../represents the parent directory

⚠️Important Note: If you are including path separators in the config file or command line, always use forward slashes as shown above in these examples.

Revised: 2020-12-05