Add file watcher to re-generate thumbnails

Previously files added while the server is running would not have
thumbnails until after the server was restarted. Now we watch the
BASE_PATH for added/renamed files in order to re-gen the thumbnail.
This commit is contained in:
Cameron Cordes
2020-09-13 21:31:32 -04:00
parent 426c695b47
commit 2343351a4d
3 changed files with 118 additions and 0 deletions

View File

@@ -24,3 +24,5 @@ bcrypt = "0.8.1"
image = "0.23.7"
walkdir = "2"
rayon = "1.3"
notify = "4.0"
tokio = "0.2"