The MSDN documentation says that it only returns directory names ("Return value Type: ... An array of type String containing the names of subdirectories in the path."), However in their code example they recurs without their concatenation, does this mean that they return full paths?
i.e. their code example:
public static void ProcessDirectory(string targetDirectory) {
// Recurse into subdirectories of this directory. string [] subdirectoryEntries = Directory.GetDirectories(targetDirectory); foreach(string subdirectory in subdirectoryEntries) ProcessDirectory(subdirectory); }
code>
does not work if the GetDirectories method returns only directory names!
source share