Fixed incorrect SFTP upload result if directory created while uploading

This commit is contained in:
Jaex 2017-04-01 00:30:38 +03:00
parent bfbf21a622
commit f8ea9daeea

View file

@ -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)
{