@@ -158,7 +158,7 @@ await Win32API.StartSTATask(() =>
158
158
shellOperationResult . Items . Add ( new ShellOperationItemResult ( )
159
159
{
160
160
Succeeded = e . Result . Succeeded ,
161
- Source = e . SourceItem . FileSystemPath ,
161
+ Source = e . SourceItem . FileSystemPath ?? e . SourceItem . ParsingName ,
162
162
Destination = e . DestItem ? . FileSystemPath ,
163
163
HRresult = ( int ) e . Result
164
164
} ) ;
@@ -224,7 +224,7 @@ await Win32API.StartSTATask(() =>
224
224
shellOperationResult . Items . Add ( new ShellOperationItemResult ( )
225
225
{
226
226
Succeeded = e . Result . Succeeded ,
227
- Source = e . SourceItem . FileSystemPath ,
227
+ Source = e . SourceItem . FileSystemPath ?? e . SourceItem . ParsingName ,
228
228
Destination = ! string . IsNullOrEmpty ( e . Name ) ? Path . Combine ( Path . GetDirectoryName ( e . SourceItem . FileSystemPath ) , e . Name ) : null ,
229
229
HRresult = ( int ) e . Result
230
230
} ) ;
@@ -288,8 +288,8 @@ await Win32API.StartSTATask(() =>
288
288
shellOperationResult . Items . Add ( new ShellOperationItemResult ( )
289
289
{
290
290
Succeeded = e . Result . Succeeded ,
291
- Source = e . SourceItem . FileSystemPath ,
292
- Destination = e . DestFolder != null && ! string . IsNullOrEmpty ( e . Name ) ? Path . Combine ( e . DestFolder . FileSystemPath , e . Name ) : null ,
291
+ Source = e . SourceItem . FileSystemPath ?? e . SourceItem . ParsingName ,
292
+ Destination = e . DestFolder ? . FileSystemPath != null && ! string . IsNullOrEmpty ( e . Name ) ? Path . Combine ( e . DestFolder . FileSystemPath , e . Name ) : null ,
293
293
HRresult = ( int ) e . Result
294
294
} ) ;
295
295
} ;
@@ -363,8 +363,8 @@ await Win32API.StartSTATask(() =>
363
363
shellOperationResult . Items . Add ( new ShellOperationItemResult ( )
364
364
{
365
365
Succeeded = e . Result . Succeeded ,
366
- Source = e . SourceItem . FileSystemPath ,
367
- Destination = e . DestFolder != null && ! string . IsNullOrEmpty ( e . Name ) ? Path . Combine ( e . DestFolder . FileSystemPath , e . Name ) : null ,
366
+ Source = e . SourceItem . FileSystemPath ?? e . SourceItem . ParsingName ,
367
+ Destination = e . DestFolder ? . FileSystemPath != null && ! string . IsNullOrEmpty ( e . Name ) ? Path . Combine ( e . DestFolder . FileSystemPath , e . Name ) : null ,
368
368
HRresult = ( int ) e . Result
369
369
} ) ;
370
370
} ;
@@ -554,8 +554,8 @@ private void UpdateFileTageDb(object sender, ShellFileOperations.ShellFileOpEven
554
554
{
555
555
"delete" => e . DestItem ? . FileSystemPath ,
556
556
"rename" => ( ! string . IsNullOrEmpty ( e . Name ) ? Path . Combine ( Path . GetDirectoryName ( e . SourceItem . FileSystemPath ) , e . Name ) : null ) ,
557
- "copy" => ( e . DestFolder != null && ! string . IsNullOrEmpty ( e . Name ) ? Path . Combine ( e . DestFolder . FileSystemPath , e . Name ) : null ) ,
558
- _ => ( e . DestFolder != null && ! string . IsNullOrEmpty ( e . Name ) ? Path . Combine ( e . DestFolder . FileSystemPath , e . Name ) : null )
557
+ "copy" => ( e . DestFolder ? . FileSystemPath != null && ! string . IsNullOrEmpty ( e . Name ) ? Path . Combine ( e . DestFolder . FileSystemPath , e . Name ) : null ) ,
558
+ _ => ( e . DestFolder ? . FileSystemPath != null && ! string . IsNullOrEmpty ( e . Name ) ? Path . Combine ( e . DestFolder . FileSystemPath , e . Name ) : null )
559
559
} ;
560
560
if ( destination == null )
561
561
{
0 commit comments