Updated to prompt for overwriting if the output directory is not empty