Re: Recursive proc/check file size
- From: Neil Madden <nem@xxxxxxxxxxxxx>
- Date: Thu, 22 May 2008 14:36:59 +0100
Ralf Fassel wrote:
* Neil Madden <nem@xxxxxxxxxxxxx>
| proc checksize {myfile {prevsize 0}} {
| set filesize [file size $myfile]
| puts $filesize
| if {$filesize > 0 && $filesize == $prevsize} {
| puts "all done"
On a loaded machine, or due to flushing behaviour, the 'all done'
might not be true.
Yes, that's true - I didn't give much consideration to the actual problem being solved here. The safest solution is to know ahead of time what the final expected size of the file is. With a large enough after interval the above proc will probably be reasonably reliable for casual usage.
-- Neil
.
- References:
- Recursive proc/check file size
- From: Kevin Walzer
- Re: Recursive proc/check file size
- From: Neil Madden
- Re: Recursive proc/check file size
- From: Ralf Fassel
- Recursive proc/check file size
- Prev by Date: Re: Recursive proc/check file size
- Next by Date: Re: Recursive proc/check file size
- Previous by thread: Re: Recursive proc/check file size
- Next by thread: Re: Recursive proc/check file size
- Index(es):
Relevant Pages
|