winscp上傳的.filepart問題
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
使用winscp上傳看起來在服務器會先產生filename.filepart
這樣的tmp file, 然後傳輸完成之後會rename成filename
而sersync看起來只會捕捉到filename.filepart
的產生,不會捕捉到rename傳輸完成之後rename成filename的行為,
這部分請問有解決方法嗎?
Original issue reported on code.google.com by pahud...@gmail.com
on 7 Dec 2010 at 6:36
Google Code Exporter commented
我用inotifywait監測了一下整個行為,
上傳一個document.psd文件測試:
inotifywait -mr --format '%e %f' ./
Setting up watches. Beware: since -r was given, this may take a while!
Watches established.
OPEN,ISDIR
CLOSE_NOWRITE,CLOSE,ISDIR
CREATE document.psd.filepart
OPEN document.psd.filepart
MODIFY document.psd.filepart
中間省略了大量的MODIFY
MODIFY document.psd.filepart
CLOSE_WRITE,CLOSE document.psd.filepart
CREATE document.psd
DELETE document.psd.filepart
ATTRIB document.psd
OPEN,ISDIR
CLOSE_NOWRITE,CLOSE,ISDIR
OPEN,ISDIR
CLOSE_NOWRITE,CLOSE,ISDIR
OPEN,ISDIR
CLOSE_NOWRITE,CLOSE,ISDIR
看來document.psd沒有CLOSE_WRITE操作於是沒有捕捉到,難道打開ser
sync ATTRIB的監控嗎?
Original comment by pahud...@gmail.com
on 7 Dec 2010 at 7:01
Google Code Exporter commented
打開了ATTRIB監控,可以成功捕捉了,不過不知道會不會影響��
�能了
Original comment by pahud...@gmail.com
on 7 Dec 2010 at 7:09