Utils/mkdir.ps1
|
Register-GnuUtil @{ Name = 'mkdir' Category = 'File and directory operations' Synopsis = 'Make directories.' Usage = @('mkdir [OPTION]... DIRECTORY...') Description = @('Create the DIRECTORY(ies), if they do not already exist.') Options = @( @{ Short = 'm'; Long = 'mode'; Arg = 'MODE'; Help = 'set file mode (as in chmod), not a=rwx - umask' } @{ Short = 'p'; Long = 'parents'; Help = 'no error if existing, make parent directories as needed' } @{ Short = 'v'; Long = 'verbose'; Help = 'print a message for each created directory' } @{ Short = 'Z'; Long = 'context'; Arg = 'CTX'; OptionalArg = $true; Help = 'accepted for compatibility; SELinux contexts are not supported' } ) Notes = @( 'PowerShell note: only octal modes (e.g. 755) are supported. Modes are applied on', 'Linux/macOS with PowerShell 7.3+ and ignored on Windows.' ) } |