fsprojects / ExcelProvider

This library is for the .NET platform implementing a Excel type provider.
http://fsprojects.github.io/ExcelProvider/
The Unlicense
141 stars 51 forks source link

Clean up created temp folders #37

Closed bruinbrown closed 7 years ago

bruinbrown commented 7 years ago

Internally the ExcelDataReader creates a new folder in the temp directory any time an excel spreadsheet is opened. The ExcelProvider doesn't dispose of the data reader though meaning the temp folders never get deleted (up to 80GB in one case we found). This PR adds a call to Dispose which will internally delete all of the created temp folders.

JohnDoeKyrgyz commented 7 years ago

Thanks for fixing this!