Skip to content

Common abstraction layer for IFileInfo, IDirectoryInfo and IDriveInfo? #923

@Rekkonnect

Description

@Rekkonnect

IFileInfo and IDirectoryInfo are both under the IFileSystemInfo interface, but IDriveInfo is only under IFileSystemEntity, shared by all other abstracting interfaces, including static class wrappers (e.g. IPath) and factories (e.g. IDirectoryInfoFactory).

My suggestion would be to add an extra marker interface named like IFileSystemPathItem. The reason that I'm asking for this feature in the first place is because all 3 of the above file system entities exist in a file path in Windows. Analyzing a path, exploring directories, etc. are all improved via this abstraction without resorting to creating another wrapper on top of those.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions