--- title: "Create-Directory" ---
This is generated from the built in components of BuildMaster 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Operations within your BuildMaster instance to see exactly what operations are available.

Ensures that a subdirectory exists in a ProGet Asset Directory.

Script usage:

ProGet::Create-Directory(
	Path: <text>,
	[Source: <text>],
	[Resource: <text>],
	[EndpointUrl: <text>],
	[ApiKey: <text>],
	[UserName: <text>],
	[Password: <text>]
);

Arguments:

NameFormatScript UsageUsage Notes
Path (default)
text
Path
This argument is required.
Source
text
Source
Secure resource (legacy)
text
Resource
API endpoint URL
text
EndpointUrl
Not specifying will "Use URL from secure resource".
API key
text
ApiKey
Not specifying will "Use token from secure credentials".
User name
text
UserName
Not specifying will "Use user name from secure credentials".
Password
text
Password
Not specifying will "Use password from secure credentials".

Example:


# ensures that the my/folder/path directory exists in the ProGet Asset Directory specified by the MyAssetDirResource secure resource
ProGet::Create-Directory my/folder/path
(
    Resource: MyAssetDirResource
);