@@ -345,10 +345,14 @@ private ListedItem GetListedItemAsync(string itemPath, WIN32_FIND_DATA findData)
345345 ListedItem listedItem = null ;
346346 var isHidden = ( ( FileAttributes ) findData . dwFileAttributes & FileAttributes . Hidden ) == FileAttributes . Hidden ;
347347 var isFolder = ( ( FileAttributes ) findData . dwFileAttributes & FileAttributes . Directory ) == FileAttributes . Directory ;
348+ Win32PInvoke . FileTimeToSystemTime ( ref findData . ftLastWriteTime , out Win32PInvoke . SYSTEMTIME systemModifiedTimeOutput ) ;
349+ Win32PInvoke . FileTimeToSystemTime ( ref findData . ftCreationTime , out Win32PInvoke . SYSTEMTIME systemCreatedTimeOutput ) ;
350+
348351 if ( ! isFolder )
349352 {
350353 string itemFileExtension = null ;
351354 string itemType = null ;
355+ long fileSize = Win32FindDataExtensions . GetSize ( findData ) ;
352356 if ( findData . cFileName . Contains ( '.' , StringComparison . Ordinal ) )
353357 {
354358 itemFileExtension = Path . GetExtension ( itemPath ) ;
@@ -360,11 +364,15 @@ private ListedItem GetListedItemAsync(string itemPath, WIN32_FIND_DATA findData)
360364 PrimaryItemAttribute = StorageItemTypes . File ,
361365 ItemNameRaw = findData . cFileName ,
362366 ItemPath = itemPath ,
367+ ItemDateModifiedReal = systemModifiedTimeOutput . ToDateTime ( ) ,
368+ ItemDateCreatedReal = systemCreatedTimeOutput . ToDateTime ( ) ,
363369 IsHiddenItem = isHidden ,
364370 LoadFileIcon = false ,
365371 FileExtension = itemFileExtension ,
366372 ItemType = itemType ,
367- Opacity = isHidden ? Constants . UI . DimItemOpacity : 1
373+ Opacity = isHidden ? Constants . UI . DimItemOpacity : 1 ,
374+ FileSize = fileSize . ToSizeString ( ) ,
375+ FileSizeBytes = fileSize ,
368376 } ;
369377 }
370378 else
@@ -376,6 +384,8 @@ private ListedItem GetListedItemAsync(string itemPath, WIN32_FIND_DATA findData)
376384 PrimaryItemAttribute = StorageItemTypes . Folder ,
377385 ItemNameRaw = findData . cFileName ,
378386 ItemPath = itemPath ,
387+ ItemDateModifiedReal = systemModifiedTimeOutput . ToDateTime ( ) ,
388+ ItemDateCreatedReal = systemCreatedTimeOutput . ToDateTime ( ) ,
379389 IsHiddenItem = isHidden ,
380390 LoadFileIcon = false ,
381391 Opacity = isHidden ? Constants . UI . DimItemOpacity : 1
0 commit comments