On Mar 1, 8:37 am, nos...@meatonconsulting.com wrote:
I am trying to monitor the process of a file being copied, but I
cannot find a function that will return the actual file size, not the
total file size, as reported by fileinfo.length. Has anyone ever done
something like this before? I would rather do this instead of trying
to open the file exclusively.
The only reason why the "actual size" is larger than the "total file
size" is that the total file size reflects actually how much data is
in the file. The actual file size on disk is determined by the cluster
factor for the disk volume the file is stored on and is essentially
overhead you don't need to worry about when copying a file.