CreateUnityAssetDirectory
CreateUnityAssetDirectory["path"]
create an asset at the specified path.
Details
- CreateUnityAssetDirectory returns relative path of the directory it created, and $Failed if it cannot be created. The returned path is relative to the Assets directory.
- CreateUnityAssetDirectory accepts the following options:
-
CreateIntermediateDirectories True whether intermediate directories should be created as needed. OverwriteTarget True whether to overwrite if target directory if it already exist. - CreateUnityAssetDirectory also accepts File objects.
- CreateUnityAssetDirectory is Listable.
Examples
open allclose allBasic Examples (4)
Options (2)
CreateIntermediateDirectories (1)
By default, any intermediate directories are created if they do not already exist:
Use the CreateIntermediateDirectories option to only create the given directory if all intermediate directories exist:
OverwriteTarget (1)
By default, if the target directory already exists, its contents will be overwritten to an empty directory:
Use the OverwriteTarget option to prevent the target directory from being overwritten:
Text
Wolfram Research (2019), CreateUnityAssetDirectory, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/CreateUnityAssetDirectory.html.
CMS
Wolfram Language. 2019. "CreateUnityAssetDirectory." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/CreateUnityAssetDirectory.html.
APA
Wolfram Language. (2019). CreateUnityAssetDirectory. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/CreateUnityAssetDirectory.html