I want to copy a folder, and i want to delete destination folder first. So I am deleting destination folder then recreate it and then copy files. The problem is that i get the <
Try to set Fileinfo of dest first, then copy
foreach (string file in files) { string name = Path.GetFileName(file); string dest = Path.Combine(destFolder, name); FileInfo fileinfo = new FileInfo(dest); // get file attrib dest.Attributes = FileAttributes.Normal; File.Copy(file, dest, true); }.......