Skip to content

fix: literal bracket names and --fix -o mkdir - #2

Merged
hc-ui merged 4 commits into
mainfrom
cursor/literal-glob-names-aa74
Aug 26, 2026
Merged

fix: literal bracket names and --fix -o mkdir#2
hc-ui merged 4 commits into
mainfrom
cursor/literal-glob-names-aa74

Conversation

@hc-ui

@hc-ui hc-ui commented Aug 26, 2026

Copy link
Copy Markdown
Owner

改动

已存在的路径不再当 glob 展开:foo[bar].zip 这类带方括号的真文件不会再被误匹配成 foob.zip

本轮增量(未再 bump 版本,#1 已是 0.4.1):

  • --fix -o nested/out.zip 会先创建缺失的父目录
  • 父路径是文件时仍退出码 2

与已有 draft「py.typed / Windows 盘符 sanitize」互补。两边都冲了 0.4.1,合并时请先合一侧再改 version。

没有 PR 模板。未改 workflow。

验证

PYTHONPATH=src python3 -m pytest -q100 passed

@hc-ui hc-ui changed the title fix: treat existing bracket filenames as literals fix: literal bracket names and --fix -o mkdir Aug 26, 2026
@hc-ui
hc-ui marked this pull request as ready for review August 26, 2026 10:29
@hc-ui
hc-ui merged commit 935feaa into main Aug 26, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant