throws IOException {
GromacsPanel gPanel = (GromacsPanel) selectedComponent;
Set<String> directories = gPanel.directoryEntries();
if (directories == null)
return;
DataHandler handler = null;
if (project.getLocation() == ProjectLocation.SSH)
handler = ((RemoteProject) project).getDataHandler();
if (handler == null)
handler = DataHandlerFactory.getDataHandler(project);
for (String string : directories) {
String[] dirs;
boolean local = true;
if(File.separator.equals("/")){
dirs = string.split(File.separator);
}
else if (project.getLocation() == ProjectLocation.LOCALE)
dirs = string.split(File.separator + File.separator);
else{
dirs = string.split("/");
local = false;
}
String dirTmp = "";
for (int i = 0; i < dirs.length; i++) {
dirTmp += dirs[i];
handler.createDirectory(project.getPathName() + dirTmp, false);
if(local)
dirTmp += File.separator;
else
dirTmp += "/";
}