Skip to content

Commit e7af0c0

Browse files
committed
fix(web): non-posix relative path for Windows OS causes "File not found" in UI "Source Code" tab
1 parent 9a0cde1 commit e7af0c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/server/api/endpoints/files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,6 @@ def _get_file_with_content(file_path: Path, relative_path: str) -> models.File:
181181

182182
return models.File(
183183
name=file_path.name,
184-
path=relative_path,
184+
path=str(Path(relative_path).as_posix()),
185185
content=content,
186186
)

0 commit comments

Comments
 (0)