ENH: various general improvments to the POSIX functions

- ensure proper and sensible handling of empty names.
  Eg, isDir(""), isFile("") are no-ops, and avoid file-stat

- rmDir:
  * optional 'silent' option to suppress messages.
  * removes all possible sub-entries, instead of just giving up on
    the first problem encountered.

- reduced code duplication in etcFiles

ENH: provide WM_USER_RESOURCE_DIRNAME define (in foamVersion.H)

- this is still a hard-coded value, but at least centrally available
This commit is contained in:
Mark Olesen
2017-03-30 11:45:25 +02:00
parent 446b8e7188
commit 836d04ffc1
10 changed files with 660 additions and 418 deletions

View File

@ -221,7 +221,7 @@ public:
// - $WM_PROJECT_DIR/etc/caseDicts/postProcessing
//
// \return The path of the functionObject dictionary file if found
// otherwise null
// otherwise an empty path
static fileName findDict(const word& funcName);
//- Read the specified functionObject configuration dictionary parsing