@@ -1496,19 +1496,22 @@ public sealed class DirectoryChangeNotification
14961496 {
14971497 public FileNotificationAction Action { get ; }
14981498 public string FileName { get ; }
1499+ public string FullPath { get ; }
14991500
1500- internal DirectoryChangeNotification ( SafeStructureInOutBuffer < FileNotifyInformation > buffer )
1501+ internal DirectoryChangeNotification ( string base_path , SafeStructureInOutBuffer < FileNotifyInformation > buffer )
15011502 {
15021503 var info = buffer . Result ;
15031504 Action = info . Action ;
15041505 FileName = buffer . Data . ReadUnicodeString ( info . FileNameLength / 2 ) ;
1506+ FullPath = Path . Combine ( base_path , FileName ) ;
15051507 }
15061508 }
15071509
15081510 public sealed class DirectoryChangeNotificationExtended
15091511 {
15101512 public FileNotificationAction Action { get ; }
15111513 public string FileName { get ; }
1514+ public string FullPath { get ; }
15121515 public DateTime CreationTime { get ; }
15131516 public DateTime LastModificationTime { get ; }
15141517 public DateTime LastChangeTime { get ; }
@@ -1520,7 +1523,7 @@ public sealed class DirectoryChangeNotificationExtended
15201523 public long FileId { get ; }
15211524 public long ParentFileId { get ; }
15221525
1523- internal DirectoryChangeNotificationExtended ( SafeStructureInOutBuffer < FileNotifyExtendedInformation > buffer )
1526+ internal DirectoryChangeNotificationExtended ( string base_path , SafeStructureInOutBuffer < FileNotifyExtendedInformation > buffer )
15241527 {
15251528 var info = buffer . Result ;
15261529 Action = info . Action ;
@@ -1535,6 +1538,7 @@ internal DirectoryChangeNotificationExtended(SafeStructureInOutBuffer<FileNotify
15351538 FileId = info . FileId . QuadPart ;
15361539 ParentFileId = info . ParentFileId . QuadPart ;
15371540 FileName = buffer . Data . ReadUnicodeString ( info . FileNameLength / 2 ) ;
1541+ FullPath = Path . Combine ( base_path , FileName ) ;
15381542 }
15391543 }
15401544
0 commit comments