fresh-machine-37269
08/13/2026, 2:45 AMcalm-artist-7206
08/13/2026, 7:55 AMfresh-machine-37269
08/13/2026, 7:55 AMfresh-machine-37269
08/13/2026, 8:01 AMfeat(file-router): add POST /file/create_directory) and posted the feedback as a comment on the PR.
Summary of my review:
Overall it's a clean, well-structured addition with proper error semantics and thorough tests. One issue to fix before merge:
1. os.geteuid() breaks test collection on Windows β the skipif decorator calls a function that doesn't exist on Windows, which will error out the entire test module on the windows-latest CI runner. Easy fix with a getattr guard.
Plus a few non-blocking observations:
β’ The PermissionError detail string leaks the resolved path to the client (consistent with existing search_subdirs, so not a regression)
β’ lambda in asyncio.to_thread could be functools.partial for style
β’ No workspace containment check, but that's consistent with all other /api/file/* endpoints
The exception hierarchy ordering, idempotency contract, and test coverage are all solid.calm-artist-7206
08/13/2026, 8:04 AM