is Directory
True if the path refers to a directory that contains 0 or more child paths.
Note that a path does not need to be a directory for FileSystem.list to return successfully. For example, mounted storage devices may have child files, but do not identify themselves as directories.