allowFilePathsAsDirectories property
Interpret paths that do not end in slash as directory if not a file.
If a path does not end with a slash it is treated as a request for a file. But if a file does not exist with that name, this determines if it will then be treated as a path to a directory.
Implementation
bool allowFilePathsAsDirectories;