Creates a directory with the name 'dirname'. Args: dirname: 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 opera
(dirname)
| 395 | |
| 396 | @tf_export(v1=["gfile.MkDir"]) |
| 397 | def create_dir(dirname): |
| 398 | """Creates a directory with the name 'dirname'. |
| 399 | |
| 400 | Args: |
| 401 | dirname: string, name of the directory to be created |
| 402 | Notes: The parent directories need to exist. Use recursive_create_dir instead |
| 403 | if there is the possibility that the parent dirs don't exist. |
| 404 | |
| 405 | Raises: |
| 406 | errors.OpError: If the operation fails. |
| 407 | """ |
| 408 | create_dir_v2(dirname) |
| 409 | |
| 410 | |
| 411 | @tf_export("io.gfile.mkdir") |
nothing calls this directly
no test coverage detected