xoofx / zio

A cross-platform abstract/virtual filesystem framework with many built-ins filesystems for .NET
BSD 2-Clause "Simplified" License
806 stars 61 forks source link

Moving SearchOption from the System.IO to library #52

Closed sytone closed 3 years ago

sytone commented 3 years ago

If other file systems are used it seems a bit artificial to have to reference System.IO for the SearchOption enum. Is there a reason for this deign?

xoofx commented 3 years ago

If other file systems are used it seems a bit artificial to have to reference System.IO for the SearchOption enum. Is there a reason for this deign?

Not sure to understand the question... Zio is relying on many System.IO types including SearchOption but also FileMode, FileAccess, FileShare, FileAttributes, IOException, FileNotFoundException...etc. Replicating these types in Zio would not make much sense, it's an abstract file system, but it's not built on a vaccum, it still follows the existing ecosystem. Does that respond to your question?

sytone commented 3 years ago

Yes, thanks!