mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-09-22 12:39:01 +00:00
Only save the directory if it was able to be successfully created
This commit is contained in:
parent
9ead66143d
commit
6bc46d42e0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user