FileHelper port from 1.1.x

Fixes #518:
- missing features have been added.
- unit test has been composed.