Forums > Javascript

Max Crashes when I get js folder.filename, if filename is larger than 128.

September 11, 2013 | 4:22 am

Max Crashes when I get js folder.filename, if a filename is larger than 128 char.
Do you have any plans to fix it?


September 17, 2013 | 3:46 pm

I can’t reproduce. Could you post an example?


September 18, 2013 | 11:13 am

For example,if I post file length that larger than 128, sometimes max window displays "GEP" in filename, or Max Clashes.

js: filename:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaGEPJ/jpg fileLength:136

////////////////////////////////////////////////////////////////

"use_strict";
inlets = 1;
outlets = 0;
autowatch = 1;

function read(folderPath){

postFile(folderPath);

}

function postFile(folderPath){

var f = new Folder(folderPath);
f.next();

while(!f.end){

if(f.filetype != "fold"){

post("filename:" + f.filename);
post("fileLength:" + f.filename.length);
post();

}else{

postFile(f.pathname + f.filename);
}

f.next();
}

f.close();
}
postFile.local = 1;


Viewing 3 posts - 1 through 3 (of 3 total)