mirror of https://github.com/pkg/sftp.git
+godoc
This commit is contained in:
parent
b83052b538
commit
714bd5db80
|
@ -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) {
|
func (c *Client) RealPath(path string) (string, error) {
|
||||||
id := c.nextID()
|
id := c.nextID()
|
||||||
typ, data, err := c.sendPacket(nil, &sshFxpRealpathPacket{
|
typ, data, err := c.sendPacket(nil, &sshFxpRealpathPacket{
|
||||||
|
|
Loading…
Reference in New Issue