In this lecture we'll go through the practice of copying: from simple file copying via
File.Copy and
FileInfo.CopyTo to recursive directory copying using
Directory.GetFiles,
Directory.GetDirectories,
Directory.CreateDirectory and safe path building with
Path.Combine. We'll talk about error handling, overwriting (
overwrite: true), pitfalls (locks, permissions, path length) and how not to get a
StackOverflowException when copying a folder "into itself".