Android中允许的最大文件路径是多少? [英] What is the maximum file path allowed in Android
问题描述
这个问题在这里讨论文件名长度限制,我是对整个允许的路径长度感兴趣。(如果有的话)。
有这个文件系统在这里限制表,但我不知道哪个版本适用于Android。
长达1024个字符的路径,并在我测试的每个设备上都能正常工作。我没有深入,也许它搞砸了SD卡。
我认为,最大文件名长度应该小于128,最大文件路径长度应该是Android的小于1024。这些只是我的假设,他们可能是错的。所以要小心。
The question here talks about file name length limit, I'm interested in the overall permitted path length (if it matters).
There's this filesystems limits table here, though I'm not sure which applies to Android of which version.
I tested with 1024 characters long path and it works in every device I tested on. I didn't go further up, maybe it mess up the sd card.
I think, max file name length should be less than 128 and max file path length should be less than 1024 for Android. Again these are just my assumptions, they could be wrong. So be careful.
这篇关于Android中允许的最大文件路径是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!