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

运行程序以后无法得到文件列表 #1

Open
8TIBi1 opened this issue Jan 20, 2021 · 2 comments
Open

运行程序以后无法得到文件列表 #1

8TIBi1 opened this issue Jan 20, 2021 · 2 comments

Comments

@8TIBi1
Copy link

8TIBi1 commented Jan 20, 2021

带佬您好,我照着您的代码,复现您的项目,结果在运行的时候,出现了只能得到电脑上的驱动和文件夹信息,而无法得到文件信息的情况,我想请问这是需要开权限还是其他什么问题被我忽略了吗?这是我的运行之后的截图:
2

QQ截图20210120224635
再补一张报错图:
3

就应该是子目录加载出了问题,不知道为啥T_T

@Yuziquan
Copy link
Owner

你好,根据你的截图情况,我觉得是权限问题,因为我记得当时写这个项目的时候,也是在C盘(系统盘)遇到了权限问题,导致一些东西无法访问,毕竟C盘文件这种涉及系统安全性的东西,微软一定在开发Windows时设置了很多权限门槛,至于为什么内置的windows文件管理器为啥可以正常读取,毕竟他是微软的孩子,一定有一些没有开源的权限访问的代码。你可以先安装我这个repository下面的.exe文件,看看能不能正常看C盘下的文件(毕竟时间一久我也忘记了。。),如果不行,那就不是你的程序问题了。这个权限问题你可以看看其他大佬怎么解决的,我当时是没有怎么解决的。

有问题,欢迎私戳知乎:WuchangI

@hyfree
Copy link

hyfree commented Jan 21, 2021

你可能需要以管理员身份运行

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

3 participants