Beispiel #1
0
        /// <summary>
        /// Copys the file to the given destination, optionally overwritting any existing version.
        /// </summary>
        /// <param name="destination">The absolute destionation to copy to.</param>
        /// <param name="overwrite">If true will overwrite an existing file if one exists.</param>
        public void Copy(string destination, bool overwrite)
        {
            string source = FullPath.Replace(@"\\?\", "");

            File.CopyTo(destination, overwrite);
        }