fixed #183: FTP auto directory create problem

This commit is contained in:
Jaex 2014-07-14 11:27:40 +03:00
parent e39db41daa
commit fd7769d91e

View file

@ -175,7 +175,7 @@ public bool UploadData(Stream localStream, string remotePath)
catch (FtpCommandException e)
{
// Probably directory not exist, try creating it
if (e.CompletionCode == "553")
if (e.CompletionCode == "550" || e.CompletionCode == "553")
{
CreateMultiDirectory(URLHelpers.GetDirectoryPath(remotePath));