Added dircheck parameter to scanDirectory method in Sftp to let it stop on non recrusive directory listing