Exemplo n.º 1
0
 public static bool CanSkipCopy(string from, string to)
 {
     if (!File.Exists(to))
     {
         return(false);
     }
     return(FileMirroring.AreFilesIdentical(from, to));
 }
Exemplo n.º 2
0
        public static bool CanSkipCopy(string from, string to)
        {
            bool flag  = !File.Exists(from);
            bool flag2 = !File.Exists(to);
            bool result;

            if (flag || flag2)
            {
                result = (flag && flag2);
            }
            else
            {
                result = FileMirroring.AreFilesIdentical(from, to);
            }
            return(result);
        }