String[] files = path.list();
for(int i=0; i<files.length; i++) {
try {
- if (files[i].indexOf('.') == -1) continue;
- if (files[i].charAt(0) == '.') continue;
- files[i] = files[i].substring(0, files[i].indexOf('.'));
+ if (files[i].indexOf('.') != -1) files[i] = files[i].substring(0, files[i].indexOf('.'));
int n = Integer.parseInt(files[i]);
if (n>=uidNext) uidNext = n;
} catch(Exception e) { Log.error(this, e); }