Add flush directory method
Bump version to 1.5.0
Merge branch 'release/1.5.0'