Creates a directory and all parent/intermediate directories. It succeeds if dirname already exists and is writable. Args: dirname: string, name of the directory to be created Raises: errors.OpError: If the operation fails.
(dirname)
| 425 | |
| 426 | @tf_export(v1=["gfile.MakeDirs"]) |
| 427 | def recursive_create_dir(dirname): |
| 428 | """Creates a directory and all parent/intermediate directories. |
| 429 | |
| 430 | It succeeds if dirname already exists and is writable. |
| 431 | |
| 432 | Args: |
| 433 | dirname: string, name of the directory to be created |
| 434 | |
| 435 | Raises: |
| 436 | errors.OpError: If the operation fails. |
| 437 | """ |
| 438 | recursive_create_dir_v2(dirname) |
| 439 | |
| 440 | |
| 441 | @tf_export("io.gfile.makedirs") |
nothing calls this directly
no test coverage detected