Fix flush directory method
Fix flush method
Bump version to 1.8.0
Merge branch 'release/1.8.0'