}
protected boolean checkIfCurrFolderExists(HttpServletRequest request)
throws ConnectorException {
String tmpType = request.getParameter("type");
if (tmpType != null) {
<BUG>if (checkIfTypeExists(tmpType)) {
Path currDir = Paths.get(
configuration.getTypes().get(tmpType).getPath()
+ this.currentFolder);</BUG>
if (!Files.exists(currDir) || !Files.isDirectory(currDir)) {

}
public void runCommand(HttpServletRequest request,
HttpServletResponse response,
IConfiguration configuration) throws ConnectorException {
this.initParams(request, configuration);
try {
setResponseHeader(response, request.getServletContext());
try (ServletOutputStream out = response.getOutputStream()) {
execute(out);
out.flush();
}
} catch (IOException e) {
