alphaleonis / AlphaFS

AlphaFS is a .NET library providing more complete Win32 file system functionality to the .NET platform than the standard System.IO classes.
http://alphafs.alphaleonis.com/
MIT License
563 stars 99 forks source link

EnumerateAlternateFileStreams includes default data stream #523

Open MrDomingo opened 3 years ago

MrDomingo commented 3 years ago

I think that EnumerateAlternateDataStreams() should not include the default (unnamed) data stream. The name itself implies the 'other' data streams that have explicit names associated with them. So, option is to either alter the function behavior or add optional call argument or split it into EnumerateAllDataStreams() and EnumerateAlternateDataStreams(). If nothing else, the documentation should be updated to reflect the behavior. I had the need to make use of deletion of alternate data streams and I was lucky enough to notice that all data streams were presented to me for deletion rather than just named data streams.