<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/lib/io/file_io.py#L980-L1004) |

Returns the currently registered filesystem schemes.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.io.gfile.get_registered_schemes`](https://www.tensorflow.org/api_docs/python/tf/io/gfile/get_registered_schemes)

<br />

    tf.io.gfile.get_registered_schemes()

The [`tf.io.gfile`](https://www.tensorflow.org/api_docs/python/tf/io/gfile) APIs, in addition to accepting traditional filesystem paths,
also accept file URIs that begin with a scheme. For example, the local
filesystem path `/tmp/tf` can also be addressed as `file:///tmp/tf`. In this
case, the scheme is `file`, followed by `://` and then the path, according to
[URI syntax](https://datatracker.ietf.org/doc/html/rfc3986#section-3).

This function returns the currently registered schemes that will be recognized
by [`tf.io.gfile`](https://www.tensorflow.org/api_docs/python/tf/io/gfile) APIs. This includes both built-in schemes and those
registered by other TensorFlow filesystem implementations, for example those
provided by [TensorFlow I/O](https://github.com/tensorflow/io).

The empty string is always included, and represents the "scheme" for regular
local filesystem paths.

<br />

<br />

<br />

| ## Returns ||
|---|---|
| List of string schemes, e.g. `['', 'file', 'ram']`, in arbitrary order. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| [`errors.OpError`](https://www.tensorflow.org/api_docs/python/tf/errors/OpError) | If the operation fails. |

<br />