@@ -128,7 +128,7 @@ public static Task SetClipboard(string[] filesToCopy, DataPackageOperation opera
128
128
{
129
129
using var shi = new ShellItem ( fileToDeletePath [ i ] ) ;
130
130
using var file = SafetyExtensions . IgnoreExceptions ( ( ) => GetFirstFile ( shi ) ) ?? shi ;
131
- if ( file . Properties . GetProperty < uint > ( PKEY_FilePlaceholderStatus ) == PS_CLOUDFILE_PLACEHOLDER )
131
+ if ( ( uint ? ) file . Properties . GetValueOrDefault ( PKEY_FilePlaceholderStatus ) == PS_CLOUDFILE_PLACEHOLDER )
132
132
{
133
133
// Online only files cannot be tried for deletion, so they are treated as to be permanently deleted.
134
134
shellOperationResult . Items . Add ( new ShellOperationItemResult ( )
@@ -276,7 +276,7 @@ public static Task SetClipboard(string[] filesToCopy, DataPackageOperation opera
276
276
if ( ! permanently && ! e . Flags . HasFlag ( ShellFileOperations . TransferFlags . DeleteRecycleIfPossible ) )
277
277
throw new Win32Exception ( HRESULT . COPYENGINE_E_RECYCLE_BIN_NOT_FOUND ) ;
278
278
279
- sizeCalculator . ForceComputeFileSize ( e . SourceItem . FileSystemPath ) ;
279
+ sizeCalculator . ForceComputeFileSize ( e . SourceItem . GetParsingPath ( ) ) ;
280
280
fsProgress . FileName = e . SourceItem . Name ;
281
281
fsProgress . Report ( ) ;
282
282
} ;
@@ -286,7 +286,7 @@ public static Task SetClipboard(string[] filesToCopy, DataPackageOperation opera
286
286
{
287
287
if ( ! e . SourceItem . IsFolder )
288
288
{
289
- if ( sizeCalculator . TryGetComputedFileSize ( e . SourceItem . FileSystemPath , out _ ) )
289
+ if ( sizeCalculator . TryGetComputedFileSize ( e . SourceItem . GetParsingPath ( ) , out _ ) )
290
290
fsProgress . AddProcessedItemsCount ( 1 ) ;
291
291
}
292
292
@@ -472,7 +472,7 @@ public static Task SetClipboard(string[] filesToCopy, DataPackageOperation opera
472
472
473
473
op . PreMoveItem += ( s , e ) =>
474
474
{
475
- sizeCalculator . ForceComputeFileSize ( e . SourceItem . FileSystemPath ) ;
475
+ sizeCalculator . ForceComputeFileSize ( e . SourceItem . GetParsingPath ( ) ) ;
476
476
fsProgress . FileName = e . SourceItem . Name ;
477
477
fsProgress . Report ( ) ;
478
478
} ;
@@ -481,7 +481,7 @@ public static Task SetClipboard(string[] filesToCopy, DataPackageOperation opera
481
481
{
482
482
if ( ! e . SourceItem . IsFolder )
483
483
{
484
- if ( sizeCalculator . TryGetComputedFileSize ( e . SourceItem . FileSystemPath , out _ ) )
484
+ if ( sizeCalculator . TryGetComputedFileSize ( e . SourceItem . GetParsingPath ( ) , out _ ) )
485
485
fsProgress . AddProcessedItemsCount ( 1 ) ;
486
486
}
487
487
@@ -603,7 +603,7 @@ public static Task SetClipboard(string[] filesToCopy, DataPackageOperation opera
603
603
604
604
op . PreCopyItem += ( s , e ) =>
605
605
{
606
- sizeCalculator . ForceComputeFileSize ( e . SourceItem . FileSystemPath ) ;
606
+ sizeCalculator . ForceComputeFileSize ( e . SourceItem . GetParsingPath ( ) ) ;
607
607
fsProgress . FileName = e . SourceItem . Name ;
608
608
fsProgress . Report ( ) ;
609
609
} ;
@@ -612,7 +612,7 @@ public static Task SetClipboard(string[] filesToCopy, DataPackageOperation opera
612
612
{
613
613
if ( ! e . SourceItem . IsFolder )
614
614
{
615
- if ( sizeCalculator . TryGetComputedFileSize ( e . SourceItem . FileSystemPath , out _ ) )
615
+ if ( sizeCalculator . TryGetComputedFileSize ( e . SourceItem . GetParsingPath ( ) , out _ ) )
616
616
fsProgress . AddProcessedItemsCount ( 1 ) ;
617
617
}
618
618
0 commit comments