[#2148] Raise OSError with consistent code for file and folder operations.
[#2149] Clean filesystem unit tests.
Update version.
Merged with master.