Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 迁移 HMCL 内 java.io.File 的使用到 java.nio.Path #2987

Open
burningtnt opened this issue Apr 13, 2024 · 0 comments
Open

[Feature] 迁移 HMCL 内 java.io.File 的使用到 java.nio.Path #2987

burningtnt opened this issue Apr 13, 2024 · 0 comments

Comments

@burningtnt
Copy link
Member

描述 | Description

将 HMCL 内声明 java.io.File 的代码更改为 java.nio.Path

原因 | Reason

java.io.File 的方法在出现错误时返回的仅为一个 boolean,导致日志中无法判断详细信息。更改为 Path 后能直接将 IOException 输出到日志,便于诊断

@burningtnt burningtnt added this to the Release 3.5.8 milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant