I have a customer transferring XML files into an FTP server. I have written a program to determine if any files exist, and if they do, the they are processed.
Currently I am using:
The program works great. Then I began to think. What would this program do if a file was in the middle of a transfer to the FTP server.
Any thoughts. Would the ADIR() method recognize the file before the transfer was finished ?
Thanks for your suggestions.
ToddWW
Currently I am using:
Code:
_fileCount = ADIR(_fileArray,'*.xml')
IF _fileCount > 0
FOR i = 1 TO _fileCount
_xmlData = FILETOSTR(_fileArray(i,1))
&& SOME VALIDATION CODE ON THE _xmlData string.
XMLTOCURSOR(_xmlData)
&& PROCESS DATA FROM CURSOR
NEXT
ENDIF
The program works great. Then I began to think. What would this program do if a file was in the middle of a transfer to the FTP server.
Any thoughts. Would the ADIR() method recognize the file before the transfer was finished ?
Thanks for your suggestions.
ToddWW