From f9314ba664efdf4c92834500d28ba1339cc6745a Mon Sep 17 00:00:00 2001 From: "grigoriy.yashin" Date: Mon, 21 Oct 2024 09:31:18 +0300 Subject: [PATCH] Fix condition in WebDavCloudClient.cs to exclude parent and current directory URIs. --- Sources/EasyExtensions.WebDav/WebDavCloudClient.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/EasyExtensions.WebDav/WebDavCloudClient.cs b/Sources/EasyExtensions.WebDav/WebDavCloudClient.cs index 1fda962..d66520e 100644 --- a/Sources/EasyExtensions.WebDav/WebDavCloudClient.cs +++ b/Sources/EasyExtensions.WebDav/WebDavCloudClient.cs @@ -177,7 +177,8 @@ public async Task> GetResourcesAsync(string folder) x.Uri != url && x.DisplayName != ".." && x.DisplayName != "." && - x.Uri != url + "/"); + x.Uri != url + "/" && + x.Uri + "/" != url); } ///