• No experience of Samba but when I have had to check for completion of file upload I have used the file size to determine if the file is ready rather than if I can open the file. If the file size hasn't changed over e.g. 1 minute then I have deemed that any copy process is complete and that the file is ready for processing.

    Jez