xoofx / zio

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

Fix PhysicalFileSystem on .NET Framework 4.* #60

Closed Jcw87 closed 3 years ago

Jcw87 commented 3 years ago

Attempting to use PhysicalFileSystem.EnumerateItems on .NET Framework 4.7.2 will throw a FileNotFoundException. This is caused by attempting to read FileInfo.Length on directories. This pull requests fixes the issue, and enables the Zio.Tests project for .NET Framework 4.7.2 to catch similar issues in the future.