diff options
| author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2025-07-05 00:00:00 +0000 |
|---|---|---|
| committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2025-07-05 19:27:33 +0500 |
| commit | 395149956d696e6e3099d8b76d797437f94a6942 (patch) | |
| tree | 6ed5013a637078ae2dfdc4acf1ad93bf29cea356 /CPP/Windows/FileFind.cpp | |
| parent | e5431fa6f5505e385c6f9367260717e9c47dc2ee (diff) | |
| download | 7zip-25.00.tar.gz 7zip-25.00.tar.bz2 7zip-25.00.zip | |
25.0025.00
Diffstat (limited to 'CPP/Windows/FileFind.cpp')
| -rw-r--r-- | CPP/Windows/FileFind.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/CPP/Windows/FileFind.cpp b/CPP/Windows/FileFind.cpp index ca387f6..64075ab 100644 --- a/CPP/Windows/FileFind.cpp +++ b/CPP/Windows/FileFind.cpp | |||
| @@ -731,7 +731,7 @@ bool CFileInfo::Find(CFSTR path, bool followLink) | |||
| 731 | bool isOK = false; | 731 | bool isOK = false; |
| 732 | if (finder.FindFirst(s, *this)) | 732 | if (finder.FindFirst(s, *this)) |
| 733 | { | 733 | { |
| 734 | if (Name == FTEXT(".")) | 734 | if (Name.IsEqualTo(".")) |
| 735 | { | 735 | { |
| 736 | Name = path + prefixSize; | 736 | Name = path + prefixSize; |
| 737 | return true; | 737 | return true; |
| @@ -769,6 +769,13 @@ bool CFileInfo::Find(CFSTR path, bool followLink) | |||
| 769 | 769 | ||
| 770 | // return FollowReparse(path, IsDir()); | 770 | // return FollowReparse(path, IsDir()); |
| 771 | return Fill_From_ByHandleFileInfo(path); | 771 | return Fill_From_ByHandleFileInfo(path); |
| 772 | /* | ||
| 773 | // Fill_From_ByHandleFileInfo returns false (with Access Denied error), | ||
| 774 | // if there is reparse link file (not directory reparse item). | ||
| 775 | if (Fill_From_ByHandleFileInfo(path)) | ||
| 776 | return true; | ||
| 777 | return HasReparsePoint(); | ||
| 778 | */ | ||
| 772 | } | 779 | } |
| 773 | 780 | ||
| 774 | bool CFileInfoBase::Fill_From_ByHandleFileInfo(CFSTR path) | 781 | bool CFileInfoBase::Fill_From_ByHandleFileInfo(CFSTR path) |
