You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
This means that the results from these methods with a return type of FileSystemEntryInfo will always have an empty string for the short name.
The fix is easy: Remove the DirectoryEnumerationOptions.BasicSearch option as default from these methods.
However, I think this should be a breaking change, since the enumeration performance can be effected. To prevent this possible impact on performance, one has to add the DirectoryEnumerationOptions.BasicSearch option to their code.
The text was updated successfully, but these errors were encountered:
It would be a breaking change if we went the other way. Not sure I'd see it as a breaking change in this case, since no-one likely relies on the fact the AlternateFileName is empty. So I wouldn't say it's a breaking change since no-one will have to change their source-code to have it compile or to have the same behavior as before, even though the speed may be slightly affected of course. But I'm guessing the reason is you think it should be done in develop rather than master? Which sounds fine to me.
Aslo, the title should probably read FileSystemEntryInfo.AlternateFileName since this is what is publically exposed?
Yomodo
changed the title
Property WIN32_FIND_DATA.cAlternateFileName is always an empty string.
Property FileSystemEntryInfo.AlternateFileName is always an empty string.
Oct 29, 2016
The methods
EnumerateFileSystemEntryInfosCore()
andGetFileSystemEntryInfoCore()
use, by default, theDirectoryEnumerationOptions.BasicSearch
option.Using this option improves retrieving file system objects by not querying the short file name.
This means that the results from these methods with a return type of
FileSystemEntryInfo
will always have an empty string for the short name.The fix is easy: Remove the
DirectoryEnumerationOptions.BasicSearch
option as default from these methods.However, I think this should be a breaking change, since the enumeration performance can be effected. To prevent this possible impact on performance, one has to add the
DirectoryEnumerationOptions.BasicSearch
option to their code.The text was updated successfully, but these errors were encountered: