Skip to content

Instantly share code, notes, and snippets.

View zafergurel's full-sized avatar
🏀
Focusing

Zafer Gürel zafergurel

🏀
Focusing
  • CTO@Perculus / PhDc@Ozyegin Uni.
  • İstanbul
  • X @xaferel
View GitHub Profile
@zafergurel
zafergurel / gist:9108657
Last active August 29, 2015 13:56
copyDirectory method that also works for network shares.
/// <summary>
/// Copies one directory to another directory. This works for network share whereas Directory.Move does not...
/// </summary>
/// <param name="sourceDir">source directory</param>
/// <param name="destinationDir">destination directory</param>
/// <param name="deleteSourceDirectory">set to true to delete the source directory</param>
private static void copyDirectory(string sourceDir, string destinationDir, bool deleteSourceDirectory = false)
{
String[] entries;