< Back

Get-NSFiles

Fri Jan 10, 2020 9:52 pm

NAME Get-NSFiles



SYNOPSIS





SYNTAX

Get-NSFiles [[-Path] <string>] [[-fullpath] <SwitchParameter>] [[-recursive] <SwitchParameter>] [[-download]

<SwitchParameter>] [-session <nitro_service>] [<CommonParameters>]





DESCRIPTION

This cmdlet returns the file names of files in a particular path. This is similar to ls, or dir.





PARAMETERS

-session <nitro_service>

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Path <string>

specify the path where to fetch the file(s) from.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-fullpath <SwitchParameter>

specifying fullpath will list all the files with the full path. Otherwise files and directories in the path

are specified.



Required? false

Position? 2

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-recursive <SwitchParameter>

recursive enables a recursive search. enabling recursive search with full path will only return files, not

directories (however all contents of a directory are returned.



Required? false

Position? 3

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-download <SwitchParameter>



Required? false

Position? 4

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

com.citrix.netscaler.nitro.service.nitro_service

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



System.String

specify the path where to fetch the file(s) from.



System.Management.Automation.SwitchParameter

specifying fullpath will list all the files with the full path. Otherwise files and directories in the path

are specified.



System.Management.Automation.SwitchParameter

recursive enables a recursive search. enabling recursive search with full path will only return files, not

directories (however all contents of a directory are returned.



System.Management.Automation.SwitchParameter





OUTPUTS





RELATED LINKS