fix: validate workspace path is a directory before cursor install (#3440)

Add an is_dir() check after the existence check in
install_cursor_workspace() to provide a clear error message when
a file path is passed instead of a directory.

Fixes #3426

Co-authored-by: nightcityblade <nightcityblade@gmail.com>
Co-authored-by: Jeremiah Lowin <153965+jlowin@users.noreply.github.com>
This commit is contained in:
nightcityblade 2026-03-15 04:14:03 +08:00 committed by GitHub
commit 01c57a9e04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

Diff content is not available