Search code examples
.net-3.5microsoft-distributed-file-systemdirectoryinfo

Can I resolve a DFS path with DirectoryInfo?


Is there a way to resolve a DFS path directly with DirectoryInfo?

I found this answer: How can I get an active UNC Path in DFS programatically ... is this really my only option?


Solution

  • Correct, DirectoryInfo provides no ability to "resolve" the active path of a DFS share. This is likely because DirectoryInfo is on a much higher level.

    Exposes instance methods for creating, moving, and enumerating through directories and subdirectories.

    The active path on a DFS share should be considered an "implementation detail" by your application.