Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winscp上傳的.filepart問題 #45

Open
GoogleCodeExporter opened this issue Apr 17, 2015 · 2 comments
Open

winscp上傳的.filepart問題 #45

GoogleCodeExporter opened this issue Apr 17, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

使用winscp上傳看起來在服務器會先產生filename.filepart 
這樣的tmp file, 然後傳輸完成之後會rename成filename

而sersync看起來只會捕捉到filename.filepart 
的產生,不會捕捉到rename傳輸完成之後rename成filename的行為,
這部分請問有解決方法嗎?


Original issue reported on code.google.com by [email protected] on 7 Dec 2010 at 6:36

@GoogleCodeExporter
Copy link
Author

我用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 [email protected] on 7 Dec 2010 at 7:01

@GoogleCodeExporter
Copy link
Author

打開了ATTRIB監控,可以成功捕捉了,不過不知道會不會影響��
�能了

Original comment by [email protected] on 7 Dec 2010 at 7:09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant