public List<String> getFileList() {
        File dir = new File(File.separator + directory);
        List<String> temp = Arrays.asList(dir.list());
        List<String> fileList = new ArrayList<String>();

        int i = fileList.indexOf(lastScript);
        if (i < 0) {
            i = 0;
        }

        while (i < temp.size()) {
            fileList.add(temp.get(i));
            i++;
        }

        return fileList;
    }