add rewindFileIfTemp()
Merge branch 'develop'