tf.compat.v1.gfile.MakeDirs
Stay organized with collections
Save and categorize content based on your preferences.
Creates a directory and all parent/intermediate directories.
tf.compat.v1.gfile.MakeDirs(
dirname
)
Used in the notebooks
It succeeds if dirname already exists and is writable.
Args |
dirname
|
string, name of the directory to be created
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.compat.v1.gfile.MakeDirs\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/python/lib/io/file_io.py#L486-L498) |\n\nCreates a directory and all parent/intermediate directories. \n\n tf.compat.v1.gfile.MakeDirs(\n dirname\n )\n\n### Used in the notebooks\n\n| Used in the tutorials |\n|---------------------------------------------------------------------------------------------------------------------------------|\n| - [Linear Mixed-Effect Regression in {TF Probability, R, Stan}](https://www.tensorflow.org/probability/examples/HLM_TFP_R_Stan) |\n\nIt succeeds if dirname already exists and is writable.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------|---------------------------------------------|\n| `dirname` | string, name of the directory to be created |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|----------------------------------------------------------------------------------|-------------------------|\n| [`errors.OpError`](https://www.tensorflow.org/api_docs/python/tf/errors/OpError) | If the operation fails. |\n\n\u003cbr /\u003e"]]