Checks if a directory exists on the server.
public func dirExists(url: String) throws -> Bool
Use this method to check if the URL exists and is accessible.