@@ -15,7 +15,7 @@ public static class Win32StorageEnumerator
1515 private static readonly ISizeProvider folderSizeProvider = Ioc . Default . GetService < ISizeProvider > ( ) ;
1616 private static readonly IStorageCacheService fileListCache = Ioc . Default . GetRequiredService < IStorageCacheService > ( ) ;
1717
18- private static readonly string folderTypeTextLocalized = " Folder" . GetLocalizedResource ( ) ;
18+ private static readonly string folderTypeTextLocalized = Strings . Folder . GetLocalizedResource ( ) ;
1919
2020 public static async Task < List < ListedItem > > ListEntries (
2121 string path ,
@@ -112,7 +112,7 @@ private static IEnumerable<ListedItem> EnumAdsForPath(string itemPath, ListedIte
112112
113113 public static ListedItem GetAlternateStream ( ( string Name , long Size ) ads , ListedItem main )
114114 {
115- string itemType = " File" . GetLocalizedResource ( ) ;
115+ string itemType = Strings . File . GetLocalizedResource ( ) ;
116116 string itemFileExtension = null ;
117117
118118 if ( ads . Name . Contains ( '.' ) )
@@ -250,7 +250,7 @@ CancellationToken cancellationToken
250250
251251 long itemSizeBytes = findData . GetSize ( ) ;
252252 var itemSize = itemSizeBytes . ToSizeString ( ) ;
253- string itemType = " File" . GetLocalizedResource ( ) ;
253+ string itemType = Strings . File . GetLocalizedResource ( ) ;
254254 string itemFileExtension = null ;
255255
256256 if ( findData . cFileName . Contains ( '.' ) )
@@ -289,7 +289,7 @@ CancellationToken cancellationToken
289289 ItemDateModifiedReal = itemModifiedDate ,
290290 ItemDateAccessedReal = itemLastAccessDate ,
291291 ItemDateCreatedReal = itemCreatedDate ,
292- ItemType = " Shortcut" . GetLocalizedResource ( ) ,
292+ ItemType = Strings . Shortcut . GetLocalizedResource ( ) ,
293293 ItemPath = itemPath ,
294294 FileSize = itemSize ,
295295 FileSizeBytes = itemSizeBytes ,
@@ -311,7 +311,7 @@ CancellationToken cancellationToken
311311 ItemDateModifiedReal = itemModifiedDate ,
312312 ItemDateAccessedReal = itemLastAccessDate ,
313313 ItemDateCreatedReal = itemCreatedDate ,
314- ItemType = " Shortcut" . GetLocalizedResource ( ) ,
314+ ItemType = Strings . Shortcut . GetLocalizedResource ( ) ,
315315 ItemPath = itemPath ,
316316 FileSize = itemSize ,
317317 FileSizeBytes = itemSizeBytes ,
@@ -342,7 +342,7 @@ CancellationToken cancellationToken
342342 ItemDateModifiedReal = itemModifiedDate ,
343343 ItemDateAccessedReal = itemLastAccessDate ,
344344 ItemDateCreatedReal = itemCreatedDate ,
345- ItemType = isUrl ? " ShortcutWebLinkFileType" . GetLocalizedResource ( ) : " Shortcut" . GetLocalizedResource ( ) ,
345+ ItemType = isUrl ? Strings . ShortcutWebLinkFileType . GetLocalizedResource ( ) : Strings . Shortcut . GetLocalizedResource ( ) ,
346346 ItemPath = itemPath ,
347347 FileSize = itemSize ,
348348 FileSizeBytes = itemSizeBytes ,
@@ -368,7 +368,7 @@ CancellationToken cancellationToken
368368 ItemDateModifiedReal = itemModifiedDate ,
369369 ItemDateAccessedReal = itemLastAccessDate ,
370370 ItemDateCreatedReal = itemCreatedDate ,
371- ItemType = isUrl ? " ShortcutWebLinkFileType" . GetLocalizedResource ( ) : " Shortcut" . GetLocalizedResource ( ) ,
371+ ItemType = isUrl ? Strings . ShortcutWebLinkFileType . GetLocalizedResource ( ) : Strings . Shortcut . GetLocalizedResource ( ) ,
372372 ItemPath = itemPath ,
373373 FileSize = itemSize ,
374374 FileSizeBytes = itemSizeBytes ,
0 commit comments