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

下载目录判断路径,代码优化建议 #48

Open
dryyun opened this issue Jul 14, 2022 · 0 comments
Open

下载目录判断路径,代码优化建议 #48

dryyun opened this issue Jul 14, 2022 · 0 comments

Comments

@dryyun
Copy link

dryyun commented Jul 14, 2022

代码里有大量的 Chdir,跳转目录的操作
我建议,可以直接在刚开始就获取绝对路径

  • 没传 -o 就是代码运行的目录
  • 传了 -o 就是这个目录的绝对路径

之后的代码就以绝对路径为准。

@dryyun dryyun changed the title 下载目录优化建议 下载目录判断路径,代码优化建议 Jul 14, 2022
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

No branches or pull requests

1 participant