这里的问题是关于文件名长度限制,我对允许的总路径长度感兴趣(如果重要的话)。
这里有这个文件系统限制表,虽然我不确定哪个适用于哪个版本的 Android。
问问题
5440 次
2 回答
1
我测试了 1024 个字符长的路径,它适用于我测试的每台设备。我没有更进一步,也许它弄乱了sd卡。
我认为,对于 Android,最大文件名长度应小于 128,最大文件路径长度应小于 1024。同样,这些只是我的假设,它们可能是错误的。所以要小心。
于 2014-03-25T05:15:03.680 回答
0
Its not defined for Android as a whole- different devices use different filesystems. I wouldn't use a name over 255 characters (the limit of ext3, which some deices use), but I don't think there's a common length you could claim is the maximum across devices
于 2013-07-05T23:36:11.907 回答