Open
Description
openedon Apr 18, 2018
GetDirectoryContents returns an IDirectoryContents that has an Exists property and an enumeration of files. What it's missing compared to IFileInfo is the Name and PhysicalPath properties. I can't pass the IDirectoryContents around without wrapping it in my own structure that remembers the name I passed in to retrieve it, and there's no way to get the PhysicalPath except to inspect one of the items in the directory.
Fixing GetFileInfo to support directories would help too (https://github.com/aspnet/Home/issues/2537).
Found while app building for aspnet/AuthSamples#28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment