| # Convert the given URL path to a path relative to the directory we are serving | # Convert the given URL path to a path relative to the directory we are serving | ||||
| abspath = Path(super().translate_path(path)) | abspath = Path(super().translate_path(path)) | ||||
| relpath = abspath.relative_to(Path.cwd()) | relpath = abspath.relative_to(Path.cwd()) | ||||
| return self.dir / relpath | |||||
| return str(self.dir / relpath) | |||||
| class ServerInfo(NamedTuple): | class ServerInfo(NamedTuple): |