currentPath = file_or_path;
if (file_or_path.endsWith("/")) {
f = new DirectoryEditor(file_or_path);
f.addCommand(saveCommand);
} else if (file_or_path.endsWith(".mp3")) {
f = new FileEditor(file_or_path);
f.addCommand(saveCommand);
} else if (file_or_path.endsWith(".txt")) {
f = new VisorDeTexto(file_or_path);
}
Display.getDisplay(m).setCurrent(f);