cc-4105: added comments. fixed some docstring formatting
This commit is contained in:
parent
c8df791d13
commit
01c44e32d1
2 changed files with 7 additions and 2 deletions
|
@ -18,8 +18,10 @@ class Organizer(ReportHandler,Loggable):
|
|||
self.target_path = target_path
|
||||
super(Organizer, self).__init__(signal=self.channel)
|
||||
def handle(self, sender, event):
|
||||
"""Intercept events where a new file has been added to the organize
|
||||
directory and place it in the correct path (starting with self.target_path)"""
|
||||
"""
|
||||
Intercept events where a new file has been added to the organize
|
||||
directory and place it in the correct path (starting with self.target_path)
|
||||
"""
|
||||
try:
|
||||
new_path = mmp.organized_path(event.path, self.target_path, event.metadata.extract())
|
||||
mmp.magic_move(event.path, new_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue