On Sun, Nov 24, 2013 at 12:04 AM, Mike Cowlishaw <mfc@speleotrove.com> wrote:
They used to use stream (query exists) but something was flaky there on some kinds of disks, I think (this was a few years ago).† My current 'core routine' uses sysfiletree, with the following†comment and code.†† I don't recall why it cannot be used to test for root directory

That is also due to FindFirstFile.

MSDN says:

You cannot use root directories as the lpFileName input string for FindFirstFileówith or without a trailing backslash. If you want to see files or get the attributes of a root directory, do the following:

  • To see files in a root directory, you can use "C:\*" and step through the directory by using FindNextFile.
  • To get the attributes of a root directory, use GetFileAttributes.

Mark Miesfeld