I took a look into the porting kit and there is a strange implementation
That is the GetFiles method
public static string GetFiles(string path)
return GetChildren(path, "*", false);
And here the GetChildren method
private static string GetChildren(string path, string searchPattern, bool isDirectory)
// path and searchPattern validation in Path.GetFullPath() and Path.NormalizePath()
path = Path.GetFullPath(path);
ArrayList fileNames = new ArrayList();
string root = Path.GetPathRoot(path);
if (String.Equals(root, path))
/// This is special case. Return all the volumes.
/// Note this will not work, once we start having \\server\share like paths.
VolumeInfo volumes = VolumeInfo.GetVolumes();
int count = volumes.Length;
for (int i = 0; i < count; i++)
So searchpattern is implemented but not used
@ Support : code tags also didn’t work
When I add two diffferent code snippets only the first snippet was displayed , but two times.