File.isDir
$path.isDir() -> boolean
Description
Return true if this is a dir path.
It does not check if the path exists.
file'files:/data.txt'.isDir() //= false dir'files:/some/dir'.isDir() //= true
Return true if this is a dir path.
It does not check if the path exists.
file'files:/data.txt'.isDir() //= false dir'files:/some/dir'.isDir() //= true