Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum file path allowed in Android

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.

like image 912
Gili Nachum Avatar asked Jul 05 '13 23:07

Gili Nachum


1 Answers

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.

like image 145
xmen Avatar answered Sep 26 '22 11:09

xmen