diff --git a/python_apps/media-monitor/airtimefilemonitor/airtimeprocessevent.py b/python_apps/media-monitor/airtimefilemonitor/airtimeprocessevent.py index 14c5ec64d..d5986e868 100644 --- a/python_apps/media-monitor/airtimefilemonitor/airtimeprocessevent.py +++ b/python_apps/media-monitor/airtimefilemonitor/airtimeprocessevent.py @@ -236,10 +236,9 @@ class AirtimeProcessEvent(ProcessEvent): filename = self.mount_file_dir +"/mtab" if event.pathname in filename: self.handle_mount_change() - #if stuff dropped in stor via a UI move must change file permissions. - self.mmc.is_readable(event.pathname, event.dir) + if not event.dir: - if self.mmc.is_audio_file(event.name) and self.mmc.is_readable(event.name, False): + if self.mmc.is_audio_file(event.name) and self.mmc.is_readable(event.path, False): if event.cookie in self.temp_files: self.file_events.append({'filepath': event.pathname, 'mode': self.config.MODE_MODIFY}) del self.temp_files[event.cookie]