in reply to Re^4: Filesize (-s) is consistenly reporting too small of size in Win32
in thread Filesize (-s) is consistenly reporting too small of size in Win32
Just a thought... "dir" in Windows doesn't cache, does it?
Nope. The file may (probably is given its small size) cache in the file system cache, but there is no way for it to be updated without the cache being flushed. If that were possible, we (and the world) would have heard about it long ago.
And there is no way that a re-boot fixed it, cos there's no way for the OP scenario to happen. Perl, dir, explorer and every other program that will show you the size of the file queries that information using the same system API.
The only possibility that I can think of to explain what you saw is that the file was updated between obtaining the two figures--but that doesn't sit well with your "consistantly" claim.
Think about it. XP has been around for 7 years. Perl has run on Win32 for 10+ years. If this was a possibilty, someone (else) would have noticed it by now.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Filesize (-s) is consistenly reporting too small of size in Win32
by wilsond (Scribe) on Jan 17, 2009 at 12:08 UTC | |
by almut (Canon) on Jan 17, 2009 at 13:25 UTC | |
by wilsond (Scribe) on Jan 17, 2009 at 12:35 UTC |