|
|
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>] [<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 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-get-file-info
-------------- Example 1 --------------
C:\PS>Get-NaFile /vol/vol0/etc | fl
Get info for the etc directory.
Name : /vol/vol0/etc
FileType : directory
FileSize : 12288
CreationTimestampDT : 8/12/2008 9:16:03 PM
ChangedTimestampDT : 8/30/2010 9:12:32 PM
ModifiedTimestampDT : 8/30/2010 9:12:32 PM
AccessedTimestampDT : 8/30/2010 7:10:40 PM
AclType : nt_acl
OwnerId : 0
GroupId : 0
Perm : 1070
HardLinksCount : 31
InodeNumber : 96
IsEmpty :
RELATED LINKS
Read-NaDirectory
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|