< Back

Get-SFTPPathAttribute

Sat Jan 18, 2020 7:56 pm

NAME Get-SFTPPathAttribute



SYNOPSIS

Get the attributes for a specified path in a SFTP session.





SYNTAX

Get-SFTPPathAttribute [-SessionId] <Int32[]> [-Path] <String> [<CommonParameters>]



Get-SFTPPathAttribute [-SFTPSession] <SftpSession[]> [-Path] <String> [<CommonParameters>]





DESCRIPTION

Get the attributes for a specified path in a SFTP session.





PARAMETERS

-SessionId <Int32[]>

SFTP Session Id of an exiting session.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Path <String>

Path to get information on.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-SFTPSession <SftpSession[]>

SFTP Session Object of an exiting session.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

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

System.Int32[]





System.String





SSH.SftpSession[]







OUTPUTS

Renci.SshNet.Sftp.SftpFileAttributes







NOTES









-------------------------- EXAMPLE 1 --------------------------



Get-SFTPPathAttribute -SessionId 0 -Path "/tmp"



LastAccessTime : 2/27/2015 6:38:43 PM

LastWriteTime : 2/27/2015 7:01:01 PM

Size : 512

UserId : 0

GroupId : 0

IsSocket : False

IsSymbolicLink : False

IsRegularFile : False

IsBlockDevice : False

IsDirectory : True

IsCharacterDevice : False

IsNamedPipe : False

OwnerCanRead : True

OwnerCanWrite : True

OwnerCanExecute : True

GroupCanRead : True

GroupCanWrite : True

GroupCanExecute : True

OthersCanRead : True

OthersCanWrite : True

OthersCanExecute : True

Extensions :







RELATED LINKS

Online Version: https://github.com/darkoperator/Posh-SS ... aster/docs