Skip to content

fix(site): ignore empty file path segments in template file tree#24980

Merged
aslilac merged 1 commit into
mainfrom
lilac/fix-template-editor-empty-folders
May 5, 2026
Merged

fix(site): ignore empty file path segments in template file tree#24980
aslilac merged 1 commit into
mainfrom
lilac/fix-template-editor-empty-folders

Conversation

@aslilac
Copy link
Copy Markdown
Member

@aslilac aslilac commented May 5, 2026

This fixes empty folders appearing in the template editor file tree when tar entries include trailing or repeated path separators.

The file tree builder now ignores empty path segments before inserting tar entries, with unit coverage for a trailing slash directory path.

Generated by Coder Agents.

@aslilac aslilac requested review from jeremyruppel and matifali May 5, 2026 19:27
@aslilac aslilac marked this pull request as ready for review May 5, 2026 19:28
Copy link
Copy Markdown
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

Thank you :)

@aslilac aslilac changed the title fix(site): ignore empty template file paths fix(site): ignore empty file path segments in template file tree May 5, 2026
@aslilac aslilac merged commit 57a6421 into main May 5, 2026
38 checks passed
@aslilac aslilac deleted the lilac/fix-template-editor-empty-folders branch May 5, 2026 19:34
@github-actions github-actions Bot locked and limited conversation to collaborators May 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants