in reply to Those unreliable file stat operations in Win32

I just tested stat on Windows 2000/ActivePerl 5.8.0 and it worked fine. Maybe you should show a little code and we can figure out why it's not working. If you're really working with 500Gig files, not 500MB, I can see that there could be a difference since that's > 32 bits!!
  • Comment on Re: Those unreliable file stat operations in Win32

Replies are listed 'Best First'.
Re2: Those unreliable file stat operations in Win32
by dragonchild (Archbishop) on Sep 30, 2003 at 18:46 UTC
    The problem is that the stat operator will lie when the file is still being copied. They will give the values for the source, not the destination. Check the code on my scratchpad for an example. (Run on both Windows and Unix for a comparison.)

    ------
    We are the carpenters and bricklayers of the Information Age.

    The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.