From the docs:
proc existsOrCreateDir(dir: string): bool {..} Check if a directory dir exists, and create it otherwise. Does not create parent directories (fails if parent does not exist). Returns true if the directory already exists, and false otherwise.
Would it not be preferable to have it return true if the dir exists upon exit from proc - regardless whether it already existed or could successfully be created?
I believe that that is what most developers would be interested in (and also what the proc name implies)….