Python daemon to watch a folder and update a database

后端 未结 3 1264
予麋鹿
予麋鹿 2021-02-06 15:08

This is specifically geared towards managing MP3 files, but it should easily work for any directory structure with a lot of files.

I want to find or write a daemon (pref

3条回答
  •  北海茫月
    2021-02-06 15:45

    IMO, the best media player that has these features is Winamp. It rescans the music folders every X minutes, which is enough for music (but of course a little less efficient than letting the operating system watch for changes).

    But as you were asking for suggestions on writing your own, you could make use of pyinotify (Linux only). If you're running Windows, you can use the ReadDirectoryChangesW API call

提交回复
热议问题