Ë üÐyCïSãó¢—ddlZddlZddlZddlZddlZddlZddlmZddlZ ddl Z dZ dZ dZ eje«Zej"dgd¢«Zej&e «Zeeej.j1dd «««ZGd „d e«ZGd „d e«ZGd„de«ZGd„de«ZGd„de«Z Gd„de«Z!y)éN)ÚEINTRéÚiIII)Ú IN_Q_OVERFLOWÚ IN_UNMOUNTÚ_INOTIFY_EVENT)ÚwdÚmaskÚcookieÚlenÚDEBUGÚ0có —eZdZy)ÚEventTimeoutExceptionN)Ú__name__Ú __module__Ú __qualname__©óú5/usr/lib/python3.12/site-packages/inotify/adapters.pyrr(s„Ørrcó‡—eZdZˆfd„ZˆxZS)ÚTerminalEventExceptioncó:•—tt|� |«||_y©N)ÚsuperrÚ__init__Úevent)ÚselfÚ type_namerÚ __class__s €rrzTerminalEventException.__init__-sø€Ü Ô$ dÑ4°YÔ?؈� r)rrrrÚ __classcell__©r s@rrr,s ø„÷ðrrcó’—eZdZgefd„Zd„Zd„Zejjfd„Z d d„Z d d„Z d„Z d„Zd d d efd „Zed „«Zy )ÚInotifycóš—||_i|_i|_d|_tj j «|_tjd|j«tj«|_ |jj|jtj«d|_|D]}|j!|«Œy)NrzInotify handle is (%d).)Ú_Inotify__block_durationÚ_Inotify__watchesÚ_Inotify__watches_rÚ_Inotify__bufferÚinotifyÚcallsÚ inotify_initÚ_Inotify__inotify_fdÚ_LOGGERÚdebugÚselectÚepollÚ_Inotify__epollÚregisterÚPOLLINÚ_Inotify__last_success_returnÚ add_watch)rÚpathsÚblock_duration_sÚpaths rrzInotify.__init__3s“€Ø 0ˆÔ؈ŒØˆÔ؈Œ ä#ŸM™M×6Ñ6Ó8ˆÔÜ� ‰ Ð/°×1BÑ1BÔCä—|‘|“~ˆŒ Ø � ‰ ×јd×/Ñ/´·±Ô?à%)ˆÔ"ãˆDØ �N‰N˜4Õ ñrcóZ— |j«S#t$r|jcYSwxYw)z=Allow the block-duration to be an integer or a function-call.)r&Ú TypeError©rs rÚ__get_block_durationzInotify.__get_block_durationDs1€ð )Ø×(Ñ(Ó*Ð *øÜò )à×(Ñ(Ò (ð )ús ‚’*©*cól—tjd«tj|j«y)NzCleaning-up inotify.)r.r/ÚosÚcloser-r<s rÚ__del__zInotify.__del__Ms!€Ü� ‰ Ð,Ô-Ü �‰�×"Ñ"Õ#rcó^—tjd|«||jvrtjd|«y|j d«}t j j|j||«}tjd||«||j|<||j|<|S)NzAdding watch: [%s]z Path already being watched: [%s]Úutf8zAdded watch (%d): [%s]) r.r/r'ÚwarningÚencoder*r+Úinotify_add_watchr-r()rÚ path_unicoder Ú path_bytesr s rr6zInotify.add_watchQs“€Ü� ‰ Ð*¨LÔ9ð ˜4Ÿ>™>Ñ )Ü �O‰OÐ>À Ô MØ à!×(Ñ(¨Ó0ˆ ä �]‰]× ,Ñ ,¨T×->Ñ->À ÈDÓ QˆÜ� ‰ Ð.°°LÔAà')ˆ�‰�|Ñ$Ø+ˆ×јÑàˆ rcó¬—|jj|«}|€ytjd||«|j|=|j ||«y)zÙRemove our tracking information and call inotify to stop watching the given path. When a directory is removed, we'll just have to remove our tracking since inotify already cleans-up the watch. Nz*Removing watch for watch-handle (%d): [%s])r'Úgetr.r/Úremove_watch_with_id)rr9Ú superficialr s rÚ remove_watchzInotify.remove_watchgsR€ð �^‰^× Ñ  Ó %ˆØ ˆ:Ø ä� ‰ ÐBؘ$ô ð �N‰N˜4Ð à ×!Ñ! " kÕ2rcó¨—|j|=|durAtjd|«tjj |j |«yy)NFz%Removing watch for watch-handle (%d).)r(r.r/r*r+Úinotify_rm_watchr-)rr rLs rrKzInotify.remove_watch_with_idxsF€Ø × Ñ ˜RÐ à ˜%Ñ Ü �M‰MÐAÀ2Ô Fä �M‰M× *Ñ *¨4×+<Ñ+<¸bÕ Að rcóЗg}tjjj«D](\}}||zsŒ |j |«||z}|dk(sŒ(n|dk(s Jd|fz«‚|S)Nrz*We could not resolve all event-types: (%d))r*Ú constantsÚ MASK_LOOKUPÚitemsÚappend)rÚ event_typeÚnamesÚbitÚnames rÚ_get_event_nameszInotify._get_event_names€sz€ØˆÜ ×*Ñ*×6Ñ6×<Ñ<Ö>‰IˆC�ؘCÓØ— ‘ ˜TÔ"ؘcÑ!� à “?Ùð ?ð˜QŠð LØ;¸z¸mÑKó Lˆðˆ rc#óK—tj|d«}|sy|xj|z c_ t|j«}|tkrt j d«y|jdt}tjt|«}t|Ž}|j|j«}t j dj|««t|jz}||kry|jt|} | jd«} |j|d|_|jj!|j"«} | �| j%d«} ||| | f–—t|j«} | tkry�ŒZ­w)z1Handle a series of events coming-in from inotify.iNzNot enough bytes for a header.zEvents received in stream: {}órC)r?Úreadr)r Ú_STRUCT_HEADER_LENGTHr.r/ÚstructÚunpackÚ_HEADER_STRUCT_FORMATrrYr ÚformatÚrstripr(rJr Údecode)rr ÚbÚlengthÚ peek_sliceÚ header_rawÚheaderÚ type_namesÚ event_lengthÚfilenameÚfilename_bytesr9Úfilename_unicodeÚ buffer_lengths rÚ_handle_inotify_eventzInotify._handle_inotify_event�scèø€ô �G‰G�B˜Ó ˆÙØ à � Š ˜Ñ� àܘŸ™Ó'ˆFàÔ-Ò-Ü— ‘ Ð>Ô?ØðŸ™Ð'=Ô(=Ð>ˆJ䟙Ü1Ø&ó(ˆJô$ ZÐ0ˆFØ×.Ñ.¨v¯{©{Ó;ˆJÜ �M‰MÐ9×@Ñ@ÀÓLÔ Mä1°F·J±JÑ>ˆLؘ Ò$Øà—}‘}Ô%:¸<ÐHˆHð&Ÿ_™_¨UÓ3ˆNà ŸM™M¨,¨-Ð8ˆDŒMà×#Ñ#×'Ñ'¨¯ © Ó2ˆDØÐØ#1×#8Ñ#8¸Ó#@Рؘz¨4Ð1AÐBÒBä § ¡ Ó.ˆMØÔ4Ò4ØñKùs‚F F NTc#óØK—d|_tj«} |j«} |jj |«}|D]¤\} } |j| «} tjdj| ««|j| «D]V\} }}}tj«}| |||f}|D],}|�|||«dur ||f|_y||vsŒ"t||«‚|–—ŒXŒ¦|�tj«|z } | |kDry|durd–—Œý#t $rB}|j tk7r‚|�!tj«|z } | |kDrYd}~yYd}~�ŒDd}~wwxYw­w)zˆYield one event after another. If `timeout_s` is provided, we'll break when no event is received for that many seconds. NTzEvents received from epoll: {}F)r5ÚtimeÚ_Inotify__get_block_durationr2ÚpollÚIOErrorÚerrnorrYr.r/raror)rÚ timeout_sÚ yield_nonesÚfilter_predicateÚterminal_eventsÚ last_hit_sr8ÚeventsÚeÚtime_since_event_sÚfdrUrVrhrir9rkrs rÚ event_genzInotify.event_gen¿s‚èø€ð&*ˆÔ"ä—Y‘Y“[ˆ ØØ#×8Ñ8Ó:Ð ð ØŸ™×*Ñ*Ð+;Ó<�ó#)‘��Jð×-Ñ-¨jÓ9�Ü— ‘ Ð>×EÑEÀeÓLÔMð ×5Ñ5°bÖ9ñ9�V˜Z¨¨xä!%§¡£�Jà ¨T°8Ð<�AÛ%/˜ Ø+Ð7Ù+¨I°qÓ9¸UÑBØ;DÀa¸.˜TÔ7Û#Ø&¨/Ò9Ü"8¸ÀAÓ"FÐFð &0ð“Gñ:ð#)ð*Ð$Ü%)§Y¡Y£[°:Ñ%=Ð"Ø%¨ Ò1Øà˜dÑ"Ø’ ð_øôò Ø—7‘7œeÒ#ØàÐ(Ü)-¯©«°zÑ)AÐ&Ø)¨IÒ5Üåûð üs5‚-E*°DÁ BE*Ã=E*Ä E'Ä%2E"Å E*Å"E'Å'E*có—|jSr)r5r<s rÚlast_success_returnzInotify.last_success_returnýs€à×)Ñ)Ð)r©F)rrrÚ_DEFAULT_EPOLL_BLOCK_DURATION_SrrrrAr*rQÚ IN_ALL_EVENTSr6rMrKrYroÚ_DEFAULT_TERMINAL_EVENTSrÚpropertyr�rrrr$r$2si„ØÐ2Qó!ò")ò$ð,3×+<Ñ+<×+JÑ+Jóó,3ó"Bò ò.ðb!¨dÀTØ4ó<ð|ñ*óñ*rr$cóX—eZdZejj efd„Zdd„Ze d„«Zy)Ú _BaseTreecóÖ—|tjjztjjztjjz|_t |¬«|_y)N)r8)r*rQÚIN_ISDIRÚ IN_CREATEÚ IN_DELETEÚ_maskr$Ú_i)rr r8s rrz_BaseTree.__init__sX€ð Ü×)Ñ)×2Ñ2ñ3ä×)Ñ)×3Ñ3ñ4ô ×)Ñ)×3Ñ3ñ4ˆŒ ô Ð+;Ô<ˆ�rc+óŽK—|jjd i|¤ŽD�]!}|��|\}}}}|jtjj z�rèt jj||«}|jtjjzs'|jtjjzrat jj|«dus|durr½såðÛÛ Û Û ÛÛ åãÛð#$ÐØÐðÐð ˆ'× Ñ ˜HÓ %€à'�×'Ñ'Ø$òó€ð(˜Ÿ™Ð(=Ó>ÐÙ ‘�R—Z‘Z—^‘^ G¨SÓ1Ó2Ó 3€ ô ˜Iô ô˜Yôô M*ˆfôM*ô`F�ôFôR0�)ô0ôD0�9õ0r