Data ONTAP® PowerShell Toolkit

Cmdlet: Get-NaFile


NAME
Get-NaFile

SYNOPSIS
Obtains information for a file or directory.

SYNTAX
Get-NaFile [-Path] <String> [-Controller <NaController>] [-WarningAction <Ac
tionPreference>] [-WarningVariable <String>] [<CommonParameters>]


DESCRIPTION
Obtains information for a file or directory.


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

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-get-file-info

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

C:\PS>Get-NaFile /vol/vol0/etc


Get info for the etc directory.


AccessedTimestamp : 1273086018
AclType : nt_acl
ChangedTimestamp : 1273087875
CreationTimestamp : 1218575763
FileSize : 12288
FileType : directory
GroupId : 0
HardLinksCount : 31
InodeNumber : 96
IsEmpty :
ModifiedTimestamp : 1273087875
Name : /vol/vol0/etc
OwnerId : 0
Perm : 1070
IsEmptySpecified : False



RELATED LINKS
Read-NaDirectory







 Data ONTAP® PowerShell Toolkit