NAME
Get-SasFileInfo
SYNOPSIS
Gets a SasFileInfo object from a SasFilref.
This object contains information about the file
(size, modification date, ...)
SYNTAX
Get-SasFileInfo [-FromFileRef] <PSObject>
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-FromFileRef <PSObject>
SAS.Fileref object
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters:
Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction,
WarningVariable,
OutBuffer and OutVariable. For more
information, see
about_CommonParameters
(http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
-------------- Example 1 --------------
PS C:\> $ws = Connect-SasWorkspaceLocal
# allocate fileref via sas code
Invoke-SasCode $ws "filename myfilref
'C:\folder\file.txt';"
# get fileref object from workspace
$fileref = Get-SasFileRef $ws "myfilref"
Get-SasFileInfo $fileref
allocate the fileref via sas code and get the
object with the Get-SasFileRef Commandlet.
Then get the SasFileInfo from the fileref to
display file details
RELATED LINKS