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

有个重大问题会删除用户文件夹 #12

Closed
slemon opened this issue Nov 26, 2021 · 1 comment
Closed

有个重大问题会删除用户文件夹 #12

slemon opened this issue Nov 26, 2021 · 1 comment
Assignees

Comments

@slemon
Copy link

slemon commented Nov 26, 2021

如果把路径设置成 /Users/xxxxx/Desktop/,就会删除(替换)整个文件夹

async function exportGitbook(cid, { gitbook, rate}) {
let intro = await gktimeService.getColumnIntro(cid);
let menus = await gktimeService.getColumnMenus(cid, intro.article_count);
// clear
sh.rm('-rf', gitbook);
...
}

@MwumLi
Copy link
Owner

MwumLi commented Aug 30, 2022

这属于用户体验更好的问题: 提示是否清空?
对我来说, 这只是一个小工具, 暂时没有精力投入到这种细节, 我在 README 上添加以下提示
image

如果你有精力, 可以提 PR 过来

@MwumLi MwumLi closed this as completed Aug 30, 2022
@MwumLi MwumLi self-assigned this Nov 18, 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

2 participants