[Post-1.4] added option to overwrite file in export to file on disk.