Example #1
0
        // Token: 0x060000DF RID: 223 RVA: 0x0000AD04 File Offset: 0x00008F04
        public static void CopyDirectory(string sourcePath, string targetPath)
        {
            DirectoryInfo directoryInfo = new DirectoryInfo(sourcePath);

            foreach (DirectoryInfo directoryInfo2 in directoryInfo.GetDirectories())
            {
                Directory.CreateDirectory(targetPath + "\\" + directoryInfo2.Name);
                FPUtils.CopyDirectory(directoryInfo2.FullName, targetPath + "\\" + directoryInfo2.Name);
            }
            foreach (FileInfo fileInfo in directoryInfo.GetFiles())
            {
                fileInfo.CopyTo(targetPath + "\\" + fileInfo.Name, true);
            }
        }