Using .NET DirectoryInfo instead of custom Directory.