Skip to content

Commit

Permalink
Update docstring for on_created()
Browse files Browse the repository at this point in the history
  • Loading branch information
lahtinep committed Feb 26, 2024
1 parent f09fa82 commit c037aed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trollmoves/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,10 @@ def dispatch(self, event):
super().dispatch(event)

def on_created(self, event):
"""Do nothing on file creation."""
"""Process created files.
The function is called only when using polling observer.
"""
if self.use_polling:
self.fun(event.src_path)

Expand Down

0 comments on commit c037aed

Please sign in to comment.