Skip to content

fix: reject directory paths early in snapshot load#373

Merged
anisaoshafi merged 2 commits into
mainfrom
devx-954-fail-early-when-lstk-load-receives-a-directory
Jul 22, 2026
Merged

fix: reject directory paths early in snapshot load#373
anisaoshafi merged 2 commits into
mainfrom
devx-954-fail-early-when-lstk-load-receives-a-directory

Conversation

@anisaoshafi

@anisaoshafi anisaoshafi commented Jul 8, 2026

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.

Before After
imagen imagen

@anisaoshafi anisaoshafi added semver: patch docs: skip Pull request does not require documentation changes and removed semver: patch labels Jul 8, 2026
@anisaoshafi
anisaoshafi force-pushed the devx-954-fail-early-when-lstk-load-receives-a-directory branch from a422ce2 to d8d8447 Compare July 21, 2026 16:27
@anisaoshafi
anisaoshafi force-pushed the devx-954-fail-early-when-lstk-load-receives-a-directory branch from d8d8447 to 6f8ad6d Compare July 21, 2026 16:28
@anisaoshafi
anisaoshafi marked this pull request as ready for review July 21, 2026 16:48
@anisaoshafi
anisaoshafi requested a review from a team as a code owner July 21, 2026 16:48
@anisaoshafi
anisaoshafi requested a review from skyrpex July 22, 2026 12:10

@skyrpex skyrpex left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks.

@anisaoshafi
anisaoshafi merged commit 2dca53a into main Jul 22, 2026
17 checks passed
@anisaoshafi
anisaoshafi deleted the devx-954-fail-early-when-lstk-load-receives-a-directory branch July 22, 2026 13:11
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.

2 participants