Evaluator function: Test for Folder

It'd be helpful to have a simple way to determine if a path is a folder or a file, e.g. with a function like IsDir(), similar to is_dir in eval columns.

A workaround could be to use FilePart and Stem and see if they match, and if they do it's probably a path (I say probably because technically it wouldn't work with a file that has no extension).

Testing for a trailing backslash works well, it's just so clumsy :wink:

isDir=Right(filepath, 1)=="\"

We'll add IsDir and IsFile in 13.8.1.

2 Likes