Creates a directory with the name given by 'path'. Args: path: string, name of the directory to be created Notes: The parent directories need to exist. Use recursive_create_dir instead if there is the possibility that the parent dirs don't exist. Raises: errors.OpError: If the op
(path)
| 410 | |
| 411 | @tf_export("io.gfile.mkdir") |
| 412 | def create_dir_v2(path): |
| 413 | """Creates a directory with the name given by 'path'. |
| 414 | |
| 415 | Args: |
| 416 | path: string, name of the directory to be created |
| 417 | Notes: The parent directories need to exist. Use recursive_create_dir instead |
| 418 | if there is the possibility that the parent dirs don't exist. |
| 419 | |
| 420 | Raises: |
| 421 | errors.OpError: If the operation fails. |
| 422 | """ |
| 423 | pywrap_tensorflow.CreateDir(compat.as_bytes(path)) |
| 424 | |
| 425 | |
| 426 | @tf_export(v1=["gfile.MakeDirs"]) |