Skip to content

Commit 936d338

Browse files
committed
Hide Inaccessible Shell Link Files
1 parent 3cb7b0c commit 936d338

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Files/Filesystem/ItemViewModel.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,11 @@ public async void RapidAddItemsToCollectionAsync(string path)
696696
{
697697
if (((FileAttributes)findData.dwFileAttributes & FileAttributes.Directory) != FileAttributes.Directory)
698698
{
699-
AddFile(findData, path);
700-
++count;
699+
if (!findData.cFileName.EndsWith(".lnk"))
700+
{
701+
AddFile(findData, path);
702+
++count;
703+
}
701704
}
702705
else if (((FileAttributes)findData.dwFileAttributes & FileAttributes.Directory) == FileAttributes.Directory)
703706
{

0 commit comments

Comments
 (0)