Exemplo n.º 1
0
        private void BackupInputFolderIfNeeded(string outputFolder)
        {
            string fullOutput = AssemblyStripper.FullPathOf(outputFolder);

            if ((
                    from a in this._assemblies
                    select AssemblyStripper.FullPathOf(Path.GetDirectoryName(a))).All((string p) => string.Compare(p, fullOutput) != 0))
            {
                return;
            }
            string text = Path.Combine(outputFolder, "not-stripped");

            FileUtil.CreateOrCleanDirectory(text);
            string[] files = Directory.GetFiles(outputFolder);
            for (int i = 0; i < files.Length; i++)
            {
                string text2 = files[i];
                File.Copy(text2, Path.Combine(text, Path.GetFileName(text2)));
            }
        }