Jellyfin not reading mounted sshfs folders

I set up jellyfin with docker and it's working fine with local files. I wanted to add some additional media files so I mounted a directory using sshfs. The directory is present with the media files and it is bound to a volume in Docker. But jellyfin doesn't add the files. It doesn't find the subdirectories or the media files. Am I doing something wrong ?