How can I check if a Swift URL represents a file or a directory?
There is a hasDirectoryPath attribute on the URL object, but there doesn\'t seem to be a
hasDirectoryPath