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

勾选删除“接收的文件”抛出异常 #85

Open
how2051 opened this issue Jun 30, 2024 · 5 comments
Open

勾选删除“接收的文件”抛出异常 #85

how2051 opened this issue Jun 30, 2024 · 5 comments

Comments

@how2051
Copy link
Contributor

how2051 commented Jun 30, 2024

图片

终端报错如上,提示“指定的路径无效”

初步分析是在回调函数具体执行删除操作时调用 send2trash 后出错,具体地,是在首次遍历 dir 目录的时候,定位到程序位置:
图片

但具体原因我就分析不出来了,等一个大佬出来分析解决

@how2051
Copy link
Contributor Author

how2051 commented Jun 30, 2024

另外,虽然执行会卡在这里,但此时如果反复点击“开始”,最终还是能够删除掉所有内容

@blackboxo
Copy link
Owner

路径不存在?或者没权限?

@how2051
Copy link
Contributor Author

how2051 commented Jul 2, 2024

路径不存在?或者没权限?

路径是存在的,我用文件浏览器点进去看过。
应该不是没权限的问题,因为我多运行几次它就又能删除了。很奇怪

@blackboxo
Copy link
Owner

之前我没出现过这个报错。你这个而且同一条路径出现了几次

@how2051
Copy link
Contributor Author

how2051 commented Jul 2, 2024

嗯,可能跟这个路径下的文件名有关,当时那几个文件夹存放的都是PDF文件,文件名又长,又包含各种书名号、顿号、破折号等。这次的文件已经被我删掉了,下次我留意一下,看看是不是因为文件名中具体地一些符号导致的

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