Skip to content

fix: reject directory paths early in snapshot load#373

Draft
anisaoshafi wants to merge 1 commit into
mainfrom
devx-954-fail-early-when-lstk-load-receives-a-directory
Draft

fix: reject directory paths early in snapshot load#373
anisaoshafi wants to merge 1 commit into
mainfrom
devx-954-fail-early-when-lstk-load-receives-a-directory

Conversation

@anisaoshafi

Copy link
Copy Markdown
Collaborator

lstk snapshot load accepted a directory path and let it fall through to the upload code path, where it failed with a confusing HTTP-layer error. Now it returns a clear "" is a directory, expected a snapshot file error when no file candidate resolves instead of silently treating a directory (e.g. . or ~/) as a valid local snapshot source.

@anisaoshafi anisaoshafi added semver: patch docs: skip Pull request does not require documentation changes labels Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: skip Pull request does not require documentation changes semver: patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant