afero
afero copied to clipboard
Adjust MemFs.List() to return the data
I found the List method quite useless before. I was also unable to properly test my code without this method - I would have to iterate through entire filesystem to ensure that my code didn't write to some unexpected place.
So...3 years and the MemMapFs
is still unusable for many tests because I can't query it in any way. Don't you think it's time to fix this? Printing something in the library wasn't ever a clever idea. If the "breaking change" is the issue then let's just choose another name for the method.