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

Dispose inner filesystems when disposing a composable filesystem #22

Closed Rohansi closed 6 years ago

Rohansi commented 6 years ago

Only happens if the owned constructor parameter (optional, default true) is set to true.

Also changed MountFileSystem.Unmount to return the filesystem it unmounted. This will help users dispose of the instances by removing the need to keep track of what was mounted.

For #19.

xoofx commented 6 years ago

That's a nice addition, thanks!