---
title: "Create-Directory"
---
Ensures that a subdirectory exists in a ProGet Asset Directory.
ProGet::Create-Directory(
	Path: <text>,
	[Source: <text>],
	[Resource: <text>],
	[EndpointUrl: <text>],
	[ApiKey: <text>],
	[UserName: <text>],
	[Password: <text>]
);
| Name | Format | Script Usage | Usage Notes | 
|---|---|---|---|
| ☆ Path (default) | text | Path | This argument is required. | 
| Source | text | Source | |
| Secure resource (legacy) | text | Resource | |
| API endpoint URL | text | EndpointUrl | |
| API key | text | ApiKey | |
| User name | text | UserName | |
| Password | text | Password | 
# 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
);