Returns if the given path should be considered a directory or not. If bSetRequireDirPathEndWithSeparator is not set (the default) then we will poll the file system. However in some cases this can be very slow, in which case bSetRequireDirPathEndWithSeparator can be set to true and we require that any directory path must be terminated by a path separator (/ or ) so that we can tell by simply looking at the path itself. This is opt in behavior to avoid breaking existing 3rd party code that relies on the default behavior.