Esempio n. 1
0
        internal static void CopyDirectoryFiltered(string source, string target, bool overwrite, string regExExcludeFilter, bool recursive)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            FileUtil.\u003CCopyDirectoryFiltered\u003Ec__AnonStorey13 filteredCAnonStorey13 = new FileUtil.\u003CCopyDirectoryFiltered\u003Ec__AnonStorey13();
            // ISSUE: reference to a compiler-generated field
            filteredCAnonStorey13.exclude = (Regex)null;
            try
            {
                if (regExExcludeFilter != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    filteredCAnonStorey13.exclude = new Regex(regExExcludeFilter);
                }
            }
            catch (ArgumentException ex)
            {
                Debug.Log((object)("CopyDirectoryRecursive: Pattern '" + regExExcludeFilter + "' is not a correct Regular Expression. Not excluding any files."));
                return;
            }
            // ISSUE: reference to a compiler-generated method
            Func <string, bool> includeCallback = new Func <string, bool>(filteredCAnonStorey13.\u003C\u003Em__15);

            FileUtil.CopyDirectoryFiltered(source, target, overwrite, includeCallback, recursive);
        }
Esempio n. 2
0
 internal static void CopyDirectoryFiltered(string source, string target, bool overwrite, string regExExcludeFilter, bool recursive)
 {
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   FileUtil.\u003CCopyDirectoryFiltered\u003Ec__AnonStorey13 filteredCAnonStorey13 = new FileUtil.\u003CCopyDirectoryFiltered\u003Ec__AnonStorey13();
   // ISSUE: reference to a compiler-generated field
   filteredCAnonStorey13.exclude = (Regex) null;
   try
   {
     if (regExExcludeFilter != null)
     {
       // ISSUE: reference to a compiler-generated field
       filteredCAnonStorey13.exclude = new Regex(regExExcludeFilter);
     }
   }
   catch (ArgumentException ex)
   {
     Debug.Log((object) ("CopyDirectoryRecursive: Pattern '" + regExExcludeFilter + "' is not a correct Regular Expression. Not excluding any files."));
     return;
   }
   // ISSUE: reference to a compiler-generated method
   Func<string, bool> includeCallback = new Func<string, bool>(filteredCAnonStorey13.\u003C\u003Em__15);
   FileUtil.CopyDirectoryFiltered(source, target, overwrite, includeCallback, recursive);
 }