def _adjust_cwd(self, path):
path = b(path)<EOL>if self._cwd is None:<EOL><INDENT>return path<EOL><DEDENT>if len(path) and path[<NUM_LIT:0>:<NUM_LIT:1>] == b_slash:<EOL><INDENT>return path<EOL><DEDENT>if self._cwd == b_slash:<EOL><INDENT>return self._cwd + path<EOL><DEDENT>return self._cwd + b_slash + path<EOL>
Return an adjusted path if we're emulating a "current working
directory" for the server.