198
198
"""Return the path to be passed along the sftp protocol for relpath.
200
200
relpath is a urlencoded string.
202
205
# FIXME: share the common code across transports
203
206
assert isinstance(relpath, basestring)
204
210
relpath = urlutils.unescape(relpath).split('/')
206
211
if len(basepath) > 0 and basepath[-1] == '':