Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Read-NaDirectory


NAME
Read-NaDirectory

SYNOPSIS
Returns a list of files in a given directory.

SYNTAX
Read-NaDirectory [-Path] <String> [-Controller <NaController>] [<CommonParam
eters>]


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 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
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/vol2


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


Name Type Size Created
Modified Owner Group Perm Empty
---- ---- ---- -------
-------- ----- ----- ---- -----
. directory 4 KB 11/6/2008
8/27/2010 0 0 1077 False
.. directory 16 KB 11/6/2008
8/27/2010 0 0 2077 False
lun1 file 20 GB 3/19/2009
8/22/2010 0 0 1077
lun2 file 20 GB 2/10/2010
8/22/2010 0 0 1077
quorum file 1 GB 2/12/2009
7/28/2010 0 0 1077
lun3 file 20 GB 4/3/2009
7/28/2010 0 0 1077
lun4 file 20 GB 2/10/2009
7/28/2010 0 0 1077
lun5 file 20 GB 4/6/2009
8/22/2010 0 0 1077
metadata file 1 GB 2/17/2009
8/22/2010 0 0 1077
lun6 file 20 GB 3/2/2009
8/22/2010 0 0 1077
lun3b file 2 GB 4/3/2009
7/28/2010 0 0 1077
lun7b file 34 GB 4/6/2009
8/22/2010 0 0 1077
{6e8dbad4-894b-413a-b9cc-3cbb4ae291a5... file 20 GB 4/21/2009
7/28/2010 0 0 1077
test file 1 GB 5/19/2009
7/28/2010 0 0 1077
qtree2 directory 4 KB 3/2/2010
3/2/2010 0 0 777 True
lun100 file 2 GB 2/5/2010
7/28/2010 0 0 1077
lun3bclone file 2 GB 4/14/2010
7/28/2010 0 0 1077
testqtree directory 4 KB 5/28/2010
5/28/2010 0 0 777 False



RELATED LINKS
Get-NaFile
New-NaDirectory
Remove-NaDirectory







 Data ONTAP® PowerShell Toolkit