102
102
All paths received from the client *must* be translated.
104
105
:returns: a relpath that may be used with self._backing_transport
106
112
if not client_path.startswith('/'):
107
113
client_path = '/' + client_path
108
114
if client_path.startswith(self._root_client_path):
109
115
path = client_path[len(self._root_client_path):]
110
116
relpath = urlutils.joinpath('/', path)
111
117
assert relpath.startswith('/')
119
client_path, self._root_client_path, self._backing_transport,
114
123
raise errors.PathNotChild(client_path, self._root_client_path)