John W. Krahn wrote:
Rob Dixon wrote:
To check whether a directory's empty or not you need to read /that/
directory in turn.
Not necessarily, you should be able to tell by stat()ing the size of the
directory (this works on Linux, I don't know about DOS/Windows.)
Thanks John
As far as I can tell, stat() on a Windows system returns zero for the 'size'
field and a null string for 'blksize' and 'blocks', so no joy there.
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>