Assume that there are two file test.txt and test1.txt in "/" directory.
If the filename is shorter than 4096 bytes the file is exist,otherwise is not exist.
My OS is android and filesystem is ext4.
I want to know the reason behind this.Can someone tell me?
String path = new String(new char[4086]).replace("\0\0\0", "../")
String filename = "/"+path+test.txt
File file = new File(filename);
file.getPath().length(); //return 4095
file.exists(); //return true
String path = new String(new char[4086]).replace("\0\0\0", "../")
String filename = "/"+path+test1.txt
File file = new File(filename);
file.getPath().length(); //return 4096
file.exists(); //return false