Only save the directory if it was able to be successfully created

This commit is contained in:
terrafrost 2012-11-09 22:22:02 -06:00
parent 9ead66143d
commit 6bc46d42e0

View File

@ -1229,8 +1229,6 @@ class Net_SFTP extends Net_SSH2 {
}
}
$this->_save_dir($dir);
return true;
}
@ -1261,6 +1259,8 @@ class Net_SFTP extends Net_SSH2 {
return false;
}
$this->_save_dir($dir);
return true;
}