Skip to content

Commit

Permalink
+godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
puellanivis committed Mar 6, 2021
1 parent b83052b commit 714bd5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,10 @@ func (c *Client) PosixRename(oldname, newname string) error {
}
}

// RealPath can be used to have the server canonicalize any given path name to an absolute path.
//
// This is useful for converting path names containing ".." components,
// or relative pathnames without a leading slash into absolute paths.
func (c *Client) RealPath(path string) (string, error) {
id := c.nextID()
typ, data, err := c.sendPacket(nil, &sshFxpRealpathPacket{
Expand Down

0 comments on commit 714bd5d

Please sign in to comment.