static void importDirDo() {
        boolean success = false;
        String lastDir = null;
        File[] selectedFiles = null;

        if (!isWindows) {
            if(folderGetter==null) buildFolderGetter(mainGUI);
                int wasGot = folderGetter.showOpenDialog(mainGUI.w);
                if (wasGot == JFileChooser.APPROVE_OPTION) {
                success = true;
                lastDir = folderGetter.getCurrentDirectory().toString();
                selectedFiles = folderGetter.getSelectedFiles();

            }
        } else {
            if (winFolderGetter == null) buildWinFolderGetter();
            winFolderGetter.show();
            String folder = winFolderGetter.getFolder();
            //String foldername = winFolderGetter.getDirectory();//parent
            if (folder != null) {
                success = true;
                selectedFiles = new File[1];
                selectedFiles[0] = new File(folder);
                lastDir=folder;//foldername;
            }
        }

        if (success) {
            if (lastDir != null) Settings.setSettingAndSave("lastOpenDirectory", lastDir);
            if (selectedFiles != null) mainGUI.getState().importImages(selectedFiles);
        }
    }