pyatran.util.mkbasedir¶
-
pyatran.util.mkbasedir(path, check=False)[source]¶ Create directory needed to create a file.
This function creates the base directory of the file/folder located at path.
Parameters: path : str
Path of file, whose base directory shall be created.
check : bool, optional
If True, raise an Exception if the directory already exists. If False, silently do nothing.
Notes
This function is identical to
IUPy.util.file_io.mkbasedirbut is included explicitly in pyatran to avoid dependencies.