SIL.FieldWorks.UnicodeCharEditor.PUAInstaller.FileCopyWithLogging C# (CSharp) Méthode

FileCopyWithLogging() public static méthode

public static FileCopyWithLogging ( string inName, string outName, bool overwrite ) : void
inName string
outName string
overwrite bool
Résultat void
		public static void FileCopyWithLogging(string inName, string outName, bool overwrite)
		{
			var fi = new FileInfo(inName);
			if (fi.Length > 0)
			{
				if (LogFile.IsLogging())
				{
					LogFile.AddVerboseLine("Copying: <" + inName + "> to <" + outName +
						"> <" + overwrite + ">");
				}
				File.Copy(inName, outName, overwrite);
			}
			else
			{
				LogFile.AddVerboseLine("Not Copying (Zero size): <" + inName + "> to <" + outName +
					"> <" + overwrite + ">");
			}
		}