如何在Kotlin中找到文件的大小-Android Studio
我试图在Kotlin中找到文件的大小, 使用路径。文件尺寸。它正在崩溃,未发现的文件异常。
file.getName正在工作,正在为我提供文件名。
任何线索都将不胜感激。
I was trying to find the size of the file in kotlin,
using path.file size . It is crashing with file not found exception.
file.getname is working find and is giving me the file name.
any leads would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们这些扩展功能集以获得大小。
参考:所以问题
Us these set of extension functions to get the size.
Ref: SO Question
获取文件大小的方法有不同的方法,您可以实现自己的扩展方法,另一种方法是
There are different ways to get the file size you can implement your own extension method and other way is