mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Fixed incorrect SFTP upload result if directory created while uploading
This commit is contained in:
parent
bfbf21a622
commit
f8ea9daeea
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ private bool UploadStream(Stream stream, string remotePath, bool autoCreateDirec
|
|||
// Happens when directory not exist, create directory and retry uploading
|
||||
|
||||
CreateDirectory(URLHelpers.GetDirectoryPath(remotePath), true);
|
||||
UploadStream(stream, remotePath);
|
||||
return UploadStream(stream, remotePath);
|
||||
}
|
||||
catch (NullReferenceException)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue