Repository navigation
Bootstrap custom APL directory - #3
Merged
Merged
Conversation
Ensure the WebUI APL archive creates the custom APL directory on first use and keep the empty directory present in clean GitHub checkouts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
这个 PR 修复 fresh clone 后第一次打开 APL 选择时出现的
./zsim/data/APLData/custom路径不存在提示。原因是 Git 不会保存空目录,而
customAPL 目录默认没有内容;重新从 GitHub 拉下项目后该目录不存在。WebUI 的 APL 档案初始化会扫描默认 APL 目录和 custom APL 目录,扫描到不存在的 custom 目录时就会向用户显示路径警告。变更
APLArchive.refresh()中确保 custom APL 目录存在zsim/data/APLData/custom/.gitkeep,让 clean checkout 后目录本身存在.gitignore中继续忽略用户自定义 APL 文件,但保留.gitkeep验证
tests/test_apl_archive_bootstrap.py通过823 passed, 5 skipped