int firstSlashIndex = entry.getDir().substring(0, lastSlashIndex - 1).lastIndexOf("/");
String parentDir = entry.getDir().substring(firstSlashIndex + 1, lastSlashIndex);
String internalName = parentDir + "/" + entry.getName();
//format internal name a little bit, remove prefixes
NamedMusic nm = new NamedMusic(internalName, entry.getPath());
namedMusicList.add(nm);
}
}
}