Menu

Get-SasFiles

Andreas Menrath
Synopsis
    Retrieve information about the file system of a SAS Workspace

Syntax
    Get-SasFiles [-Workspace] <PSObject> [-Path] <String> [[-Recursive] <SwitchParameter>] [<CommonParameters>]


Description
    Gets file and folder information from the operating system


Parameters
    -Workspace <PSObject>
        SAS.Workspace object

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       true (ByValue)
        Accept wildcard characters?  false

    -Path <String>
        file system path on your SAS server

        Required?                    true
        Position?                    1
        Default value                
        Accept pipeline input?       true (ByValue)
        Accept wildcard characters?  false

    -Recursive <SwitchParameter>
        Switch if all subfolders should be iterated.
        WARNING: this may be very ressource intensive!

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



Inputs


Outputs


Notes


Examples
    --------------  Example 1  --------------
    PS C:\> $files = Get-SasFiles $ws "/usr/local/SAS"

    Retrieves information about all files and folders inside the Unix folder /usr/local/SAS
    --------------  Example 2  --------------
    PS C:\> $files = Get-SasFiles $ws "/usr/local/SAS" -Recursive

    Retrieves information about all files and folders inside the Unix folder /usr/local/SAS.
    Also searches inside all subfolders.

Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.