Windows: How to lock an FTP downloaded file -
i have 1 application in download files ftp server.
as file downloading, third party begins uploading file , ends corrupt file , unable process it.
does know how deal situation other using .complete file mechanism? (keeping track of when download complete)
is possible lock file on ftp server? ftp server windows.
no, there no standard locking mechanism, it's between , other party. here ways in addition creating .complete
file;
- the uploader uploads file
file.xls.tmp
, , when it's complete, renamefile.xls
. - the uploader uploads
tmp
directory, , when it's complete, moves scanned dir. - the uploader uploads file, , downloader scans file dates find files written before time. not reliable, since file crashed uploader may scanned.
there more versions, particularly custom ftp server, using plain standard doesn't allow "fancy stuff".
Comments
Post a Comment