We are copying a file from a Windows server to a SMB share on a RH Linux
server. An application on the Linux server polls the file share to see if a
new file has appeared. If it finds a new file, it checks to see if the size
is increasing over a set (short) period of time. If the file size does not
increase, the application moves the file to another location under the
assumption the file copy process has ended.
The problem is that Windows seems to report the entire size of the file as
the current size before the file has actually been copied. Example - at some
particular point in time, only 1 mb of a 2 mb file has been copied, but if
you did a refresh and checked the file size, it would show 2 mb even though
only 1 mb has actually arrived.
Is there a work around or fix for this behavior? Thank you.
|