Skip to content

Commit f88d25c

Browse files
committed
Fix issue where files do not get deleted after emptying recycle bin
DeleteDirectory was receiving `\\media\\205276` as the path, and DirectoryExists was returning false for that. Running the path through `this.FixPath()` seems to fix the issue.
1 parent fe4f5c3 commit f88d25c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ public void AddFile(string path, Stream stream)
245245
/// </param>
246246
public void DeleteDirectory(string path, bool recursive)
247247
{
248+
path = this.FixPath(path);
249+
248250
if (!this.DirectoryExists(path))
249251
{
250252
return;

0 commit comments

Comments
 (0)