tf.compat.v1.gfile.IsDirectory

Returns whether the path is a directory or not.