extract confirmOverwriteTask to FileInfo prototype