Android /config 目录列出了 .exists() == false 的文件?
我的 Android 2.2.2 文件系统显示 /config 包含lost+found、public 和 wifi。但是,任何这些路径的 new File() 上的 .exists() 都会返回 false。这是 Android 中的错误,还是我的理解?我没有看到任何用于检查特殊文件的文件方法..也许我在其他地方错过了一些东西?
My Android 2.2.2 file system shows a /config containing lost+found, public, and wifi. However, .exists() on a new File() for any of those paths returns false. Is this a bug in Android, or in my understanding? I don't see any File methods for checking for special files.. maybe I missed something elsewhere?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只有
root
可以列出/config
文件夹中的文件。您的应用程序无权读取此文件夹中的内容并获取文件列表。Only
root
can list files in/config
folder. Your application don't have permissions to read content and get list of files from this folder.