# tf.io.gfile.isdir

<br />

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

Returns whether the path is a directory or not.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.io.gfile.isdir(
        path
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `path` | string, path to a potential directory |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| True, if the path is a directory; False otherwise ||

<br />