< Back
Move-SFTPItem
Post
NAME Move-SFTPItem
SYNOPSIS
Move or rename a specified item in a SFTP session.
SYNTAX
Move-SFTPItem [-SessionId] <Int32[]> [-Path] <String> [-Destination] <String> [<CommonParameters>]
Move-SFTPItem [-SFTPSession] <SftpSession[]> [-Path] <String> [-Destination] <String> [<CommonParameters>]
DESCRIPTION
Move or rename a specified item in a SFTP session.
PARAMETERS
-SessionId <Int32[]>
Session Id of an existing SFTPSession.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-SFTPSession <SftpSession[]>
Existing SFTPSession object.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Path <String>
Full path of item to be moved.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Destination <String>
New destination full path.
Required? true
Position? 3
Default value None
Accept pipeline input? False
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
OUTPUTS
NOTES
Example 1
PS C:\\> Move-SFTPItem -SessionId 0 -Path "/tmp/dev_app" -Destination "/usr/local/share/app"
Move a folder in to /usr/local with a new name.
RELATED LINKS
Online Version: https://github.com/darkoperator/Posh-SS ... aster/docs
SYNOPSIS
Move or rename a specified item in a SFTP session.
SYNTAX
Move-SFTPItem [-SessionId] <Int32[]> [-Path] <String> [-Destination] <String> [<CommonParameters>]
Move-SFTPItem [-SFTPSession] <SftpSession[]> [-Path] <String> [-Destination] <String> [<CommonParameters>]
DESCRIPTION
Move or rename a specified item in a SFTP session.
PARAMETERS
-SessionId <Int32[]>
Session Id of an existing SFTPSession.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-SFTPSession <SftpSession[]>
Existing SFTPSession object.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Path <String>
Full path of item to be moved.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Destination <String>
New destination full path.
Required? true
Position? 3
Default value None
Accept pipeline input? False
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
OUTPUTS
NOTES
Example 1
PS C:\\> Move-SFTPItem -SessionId 0 -Path "/tmp/dev_app" -Destination "/usr/local/share/app"
Move a folder in to /usr/local with a new name.
RELATED LINKS
Online Version: https://github.com/darkoperator/Posh-SS ... aster/docs