10 Nov
2016
10 Nov
'16
10:57 p.m.
Mere moments ago, quoth I:
So if you wanted to use those, you'd need to wrap it in a path() first and iterate over each element to test if it is valid.
Or, of course, since you're testing a directory name, you can just use exists() to test the path as a whole (since presumably that's what you really care about).