On Sun, Nov 24, 2013 at 12:04 AM, Mike Cowlishaw <[email protected]> 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.
OK .. thanks. I wasn't aware of the underlying implementation. Bit of a
nuisance in this case.
Mike
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel