Data ONTAP® PowerShell Toolkit

Switch to clustered Data ONTAP documentation.

Cmdlet: New-NaDirectory


NAME
New-NaDirectory

SYNOPSIS
Create a directory.

SYNTAX
New-NaDirectory [-Path] <String> [-Permission] <Int32> [-Controller <NaContr
oller>] [<CommonParameters>]


DESCRIPTION
Create a directory.


PARAMETERS
-Path <String>
Path of the directory, i.e. /vol/<volumename>/<dirname>.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Permission <Int32>
Permission of the directory to be created. It's similar to Unix style pe
rmission bits: 0755 gives read/write/execute permissions to owner and r
ead/execute to group and other users. It consists of 4 octal digits deri
ved by adding up bits 4, 2 and 1. Omitted digits are assumed to be zeros
. First digit selects the set user ID(4), set group ID (2) and sticky (1
) attributes. The second digit selects permission for the owner of the f
ile: read (4), write (2) and execute (1); the third selects permissions
for other users in the same group; the fourth for other users not in the
group.

Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
DataONTAP.Types.File.FileInfo


NOTES


Category: file
API: file-create-directory

-------------- Example 1 --------------

C:\PS>New-NaDirectory /vol/vol0/etc/testdir 777


Create directory 'testdir' in /etc.


Name : /vol/vol0/etc/testdir
FileType : directory
FileSize : 4096
CreationTimestampDT : 8/30/2010 9:16:21 PM
ChangedTimestampDT : 8/30/2010 9:16:21 PM
ModifiedTimestampDT : 8/30/2010 9:16:21 PM
AccessedTimestampDT : 8/30/2010 9:16:21 PM
AclType : nt_acl
OwnerId : 0
GroupId : 0
Perm : 700
HardLinksCount : 2
InodeNumber : 3600111
IsEmpty :



RELATED LINKS
Remove-NaDirectory
Read-NaDirectory
Rename-NaDirectory







 Data ONTAP® PowerShell Toolkit