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