}
}
private ServerSideFilesBean getFilesOnServer(String userId, String folder) {
File[] files = new File(folder).listFiles();
ServerSideFilesBean bean = new ServerSideFilesBean();
for (File f : files) {
bean.addFileInfo(f.getName(), Long.toString(f.length()));
logger.trace("file added from folder (" + folder + "): " + f.getName());
}
return bean;
}