The Filewatcher expect a list of str#2
Conversation
WalkthroughUpdated Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
ovos_microphone_plugin_files/__init__.py (1)
64-65: Pass list to FileWatcher — correct. Also ensure the directory exists before starting the watcher.Change fixes the ovos_utils API expectation. To avoid init failures when the default folder doesn’t exist, create it first.
Apply this diff:
def start(self): assert self._watcher is None, "Already started" - self._watcher = FileWatcher([self.files_folder], - callback=self.on_new_file) + os.makedirs(self.files_folder, exist_ok=True) + self._watcher = FileWatcher([self.files_folder], + callback=self.on_new_file) self._is_running = TrueFollow‑ups:
- Verify minimum ovos_utils version that requires List[str] and pin it in packaging to prevent breakage on older installs.
|
Hi guys, I think this change still needs approval |
|
@devbar sorry it took me so long! thanks for the PR |
Uh oh!
There was an error while loading. Please reload this page.