Answer me this, .NET gurus: <primalscream>Why</primal_scream> does the System.IO.Directory class not include a .Copy() method. I can Move(), CreateDirectory(), and even Delete(), but I can't copy a directory and all of its contents recursively? And don't even try to tell me that Directory.Copy() doesn't exist because the .NET team figured that even wannabe programmers like me can create our own .copy() as easily as we can type D-i-r-e-c-t-o-r-y-.-C-o-p-y-(-).
My attempts to workaround this limitation went like this:
Takeaways
[1]http://www.codeproject.com/csharp/copydirectoriesrecursive.asphttp://www.aspemporium.com/aspEmporium/cshrp/howtos/howto.asp?hid=20And I don't know what this says exactly, but my issue is an international one [http://dobon.net/vb/dotnet/file/copyfolder.html]:
????????Directory.Move??????????????????"Directory.Copy"???????????????.NET Framework????????????????File.Copy????????????????????????
???????????????????(CopyDirectory????)??????????????????????????????
Aha! This just in [from Kit George]: The .NET team is thinking about adding a Copy method to the System.IO.Directory class for Whidbey. http://weblogs.asp.net/bclteam/archive/2004/01/19/60377.aspx