prompt a confirmation dialog if the user is going to overwrite file
Merge pull request #335 from haiwen/prompt_a_confirmation_dialog_if_overwriting

prompt a confirmation dialog if the user is going to overwrite file