< Back

Install-CDirectory

Sun Jan 12, 2020 10:13 pm

NAME Install-CDirectory



SYNOPSIS

Creates a directory, if it doesn't exist.





SYNTAX

Install-CDirectory [-Path] <String> [<CommonParameters>]





DESCRIPTION

The `Install-CDirectory` function creates a directory. If the directory already exists, it does nothing. If any

parent directories don't exist, they are created, too.



`Install-CDirectory` was added in Carbon 2.1.0.





PARAMETERS

-Path <String>

The path to the directory to create.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Install-CDirectory -Path 'C:\\Projects\\Carbon'



Demonstrates how to use create a directory. In this case, the directories `C:\\Projects` and `C:\\Projects\\Carbon`

will be created if they don't exist.











RELATED LINKS