Data ONTAP® PowerShell Toolkit

Cmdlet: Read-NaDirectory


NAME
Read-NaDirectory

SYNOPSIS
Returns a list of files in a given directory.

SYNTAX
Read-NaDirectory [-Path] <String> [-Controller <NaController>] [-WarningActi
on <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]


DESCRIPTION
Returns a list of files in a given 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

-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.

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

-WarningAction <ActionPreference>


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

-WarningVariable <String>


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
NetApp.Ontapi.Filer.File.FileInfo


NOTES


Category: file
API: file-list-directory-iter-start, file-list-directory-iter-next, file
-list-directory-iter-end

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

C:\PS>Read-NaDirectory /vol/smhv


List the contents of the root directory in volume 'smhv'.


AccessedTimestamp : 1273088761
AclType : no_acl
ChangedTimestamp : 1271279741
CreationTimestamp : 1270830459
FileSize : 4096
FileType : directory
GroupId : 0
HardLinksCount : 2
InodeNumber : 64
ModifiedTimestamp : 1271279741
Name : .
OwnerId : 0
Perm : 755

AccessedTimestamp : 1270830459
AclType : no_acl
ChangedTimestamp : 1272859217
CreationTimestamp : 1270830459
FileSize : 4096
FileType : directory
GroupId : 0
HardLinksCount : 5
InodeNumber : 67
ModifiedTimestamp : 1272859217
Name : ..
OwnerId : 0
Perm : 2077

AccessedTimestamp : 1271173791
AclType : no_acl
ChangedTimestamp : 1271173791
CreationTimestamp : 1270830473
FileSize : 32218421760
FileType : file
GroupId : 0
HardLinksCount : 1
InodeNumber : 100
ModifiedTimestamp : 1271173791
Name : lun1
OwnerId : 0
Perm : 1060

AccessedTimestamp : 1271279742
AclType : no_acl
ChangedTimestamp : 1271279742
CreationTimestamp : 1271279741
FileSize : 32222740480
FileType : file
GroupId : 0
HardLinksCount : 1
InodeNumber : 3741003
ModifiedTimestamp : 1271279742
Name : lun1clone
OwnerId : 0
Perm : 1060



RELATED LINKS
Get-NaFile
New-NaDirectory
Remove-NaDirectory







 Data ONTAP® PowerShell Toolkit