xoofx / zio

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

Allow IFileSystem.Watch to return null if watching cannot be done #15

Closed Rohansi closed 6 years ago

Rohansi commented 6 years ago

For #12.

Not all filesystems will be able to support watching (likely read-only) but throwing an exception prevents watching of composed filesystems such as an aggregate of a physical path and some other read-only filesystems.

Rohansi commented 6 years ago

Choosing to add CanWatch instead of returning null.