cjlucas/archivedb — Issue #5: Directory being moved out of a watch dir don't get removed from the database
Author: cjlucas
Created: 2011-11-12 19:21:04+00:00
State: open
Labels: Priority - High, Type - Defect

```2011-11-12 11:51:59 :: DEBUG :: monitor.py:223 :: process_IN_MOVED_FROM ::
2011-11-12 11:53:00 :: DEBUG :: monitor.py:202 :: process_IN_CLOSE_WRITE ::
2011-11-12 11:53:00 :: DEBUG :: monitor.py:178 :: check_last_moved_from :: self.last_moved_from = /mnt/user/stuff/apps/cbt/Lynda.com
2011-11-12 11:53:00 :: DEBUG :: monitor.py:197 :: check_last_moved_from :: it is assumed file was moved outside watch_dirs, deleting.
2011-11-12 11:53:00 :: DEBUG :: sql.py:207 :: get_fields :: SELECT `id` FROM `archive` WHERE
watch_dir = '/mnt/user/stuff/apps' and path = 'cbt' and filename = 'Lynda.com'
2011-11-12 11:53:00 :: DEBUG :: monitor.py:105 :: delete_file :: file '/mnt/user/stuff/apps/cbt/Lynda.com' not found in database
```

As you can see, the program treats Lynda.com as a file rather than the directory that it is.