mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
fixed #183: FTP auto directory create problem
This commit is contained in:
parent
e39db41daa
commit
fd7769d91e
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue