file.isdirectory — Is this a directory?
file.isdirectory path
file.isdirectory
path
Returns 1 if the path in question is a directory, otherwise 0.