for large files or slow connections, copying files may take some time.
using pyinotify, I watched the IN_CREATE event code. but this seems to happen at the beginning of the file transfer. I need to know when the file is fully copied - it is very useful if it is only halfway.
when the file transfer is completed and completed, what inotify event is fired?
IN_CLOSE, , , . , , , ( ..), , , . ( , , , , , , , ).
IN_CLOSE
IN_CLOSE IN_CLOSE_WRITE, IN_CLOSE_NOWRITE, , . (, , - WRITE/NOWRITE , - ).
IN_CLOSE_WRITE
IN_CLOSE_NOWRITE
WRITE/NOWRITE
Documentation/filesystems/inotify.txt ( , ).
script , . WinSCP, .filepart .
.filepart
script, , .filepart , , .filepart, , , .
, , IN_MOVED_IN, script , .
IN_MOVED_IN
, , incrontab:
/your/directory/ IN_ALL_EVENTS echo "$$ $@ $# $% $&"
tail -F /var/log/cron
, , .
!
? IN_CLOSE IN_CREATE . , , .
, .
Source: https://habr.com/ru/post/1746820/More articles:C question: error: expected ')' before '*' token - cHow to Transfer Existing iPhone Application to iPad - iphoneWhat is the role of the attribute name = "..." in the input? - htmlAT command to retry the SIM contact - modemJQuery UI tab for _blank web page - jqueryWhy is it necessary to reset the browser? - cssLaunch GTK + application in client browser - web-applicationsChecking a phone number using regular expression checking in C # 2008? - c #debugging native code (C ++) using gdb on Android with Eclipse. Is it possible? - androidGoogle App Engine appcfg.py data_upload Ошибка аутентификации - pythonAll Articles