boolean success = false;
for (String dir : dirs) {
sb.append(dir).append('/');
String directory = sb.toString();
if (LOG.isTraceEnabled()) {
<BUG>LOG.trace("Trying to build remote directory: " + directory);

}
try {</BUG>
channel.mkdir(directory);

boolean success = false;
String originalDirectory = getCurrentDirectory();
try {
try {
channel.cd(directory);
