View source on GitHub
|
Returns the currently registered filesystem schemes.
tf.io.gfile.get_registered_schemes()
The 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.
This function returns the currently registered schemes that will be recognized
by 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.
The empty string is always included, and represents the "scheme" for regular local filesystem paths.
Returns | |
|---|---|
List of string schemes, e.g. ['', 'file', 'ram'], in arbitrary order.
|
Raises | |
|---|---|
errors.OpError
|
If the operation fails. |
View source on GitHub