File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Files/Filesystem/FilesystemOperations Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ await DialogDisplayHelper.ShowDialogAsync(
224
224
}
225
225
else if ( source . ItemType == FilesystemItemType . File )
226
226
{
227
- var fsResult = ( FilesystemResult ) NativeFileOperationsHelper . CopyFileFromApp ( source . Path , destination , true ) ;
227
+ var fsResult = ( FilesystemResult ) await Task . Run ( ( ) => NativeFileOperationsHelper . CopyFileFromApp ( source . Path , destination , true ) ) ;
228
228
229
229
if ( ! fsResult )
230
230
{
@@ -387,7 +387,7 @@ await DialogDisplayHelper.ShowDialogAsync(
387
387
}
388
388
else
389
389
{
390
- var fsResult = ( FilesystemResult ) NativeFileOperationsHelper . MoveFileFromApp ( source . Path , destination ) ;
390
+ var fsResult = ( FilesystemResult ) await Task . Run ( ( ) => NativeFileOperationsHelper . MoveFileFromApp ( source . Path , destination ) ) ;
391
391
392
392
if ( ! fsResult )
393
393
{
@@ -449,7 +449,7 @@ await DialogDisplayHelper.ShowDialogAsync(
449
449
}
450
450
else if ( source . ItemType == FilesystemItemType . File )
451
451
{
452
- var fsResult = ( FilesystemResult ) NativeFileOperationsHelper . MoveFileFromApp ( source . Path , destination ) ;
452
+ var fsResult = ( FilesystemResult ) await Task . Run ( ( ) => NativeFileOperationsHelper . MoveFileFromApp ( source . Path , destination ) ) ;
453
453
454
454
if ( ! fsResult )
455
455
{
You can’t perform that action at this time.
0 commit comments