Fix recursive copy not working

This commit is contained in:
2024-05-27 07:39:17 +02:00
parent 51a81ddf53
commit ff5e5497c5
6 changed files with 45 additions and 7 deletions

View File

@@ -220,7 +220,7 @@ public sealed partial class LocalContentProvider : ContentProviderBase, ILocalCo
parentFullName,
AbsolutePathType.Container);
return new Container(
var container = new Container(
name,
name,
fullName,
@@ -240,6 +240,8 @@ public sealed partial class LocalContentProvider : ContentProviderBase, ILocalCo
new ExtensionCollection().AsReadOnly(),
new ObservableCollection<AbsolutePath>()
);
container.StopLoading();
return container;
}
private IItem CreateEmptyElement(NativePath nativePath)
@@ -302,6 +304,10 @@ public sealed partial class LocalContentProvider : ContentProviderBase, ILocalCo
{
Task.Run(async () => await LoadChildren(container, directoryInfo, children, pointInTime, exceptions));
}
else
{
container.StopLoading();
}
return container;
}