Mojo function
mkdtemp
mkdtemp(suffix: String = "", prefix: String = "tmp", dir: Optional[String] = None) -> String
Create a temporary directory. Caller is responsible for deleting the directory when done with it.
Args:
- โsuffix (
String): Suffix to use for the directory name. - โprefix (
String): Prefix to use for the directory name. - โdir (
Optional): Directory in which the directory will be created.
Returns:
String: The name of the created directory.
Raises:
If the directory can not be created.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!