Directory.fromUri(
Uri uri
)

Create a Directory object from a URI.

If uri cannot reference a directory this throws UnsupportedError.