From fa56430b1d982810eb1d3573acb8b30faea90e91 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 5 Jun 2019 18:54:17 +0200 Subject: [PATCH] Fix with local path. --- src/Squidex.Infrastructure/Assets/FTPAssetStore.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Squidex.Infrastructure/Assets/FTPAssetStore.cs b/src/Squidex.Infrastructure/Assets/FTPAssetStore.cs index 8e361de32..8619063f6 100644 --- a/src/Squidex.Infrastructure/Assets/FTPAssetStore.cs +++ b/src/Squidex.Infrastructure/Assets/FTPAssetStore.cs @@ -139,8 +139,8 @@ namespace Squidex.Infrastructure.Assets { var client = factory(); - client.SetWorkingDirectory(path); client.Connect(); + client.SetWorkingDirectory(path); return client; } @@ -152,7 +152,7 @@ namespace Squidex.Infrastructure.Assets return command.CompletionCode == "550"; } - return exception.InnerException != null ? IsNotFound(exception.InnerException) : false; + return exception.InnerException != null && IsNotFound(exception.InnerException); } } } \ No newline at end of file