2022-07-01, 19:02
Kodi SMB handles file lists extremely slowly in large directories, often taking 2-3 minutes (not an exaggeration, 180 seconds) to list a SMB directory with ~500 files and directories in files/videos mode (not library). This is some sort of bug in Kodi's implementation as I can mount the directory and run "ls -la" and it returns the full list in under 3 seconds. This is not a new bug, Kodi has always been really, really slow at this. Sometimes it's fast, sometimes it ain't-- and I'm not using wifi, this is on ethernet. I assume fixing it isn't a priority because they expect most people to use libraries and not file/video mode.
Anyway in hopes of making Kodi more responsive, I'm trying out SFTP from Kodi running on a ShieldTV connecting to a Windows 10 machine with Microsoft's built-in openssh. This works fine and returns directory listings essentially identically, also in file/video mode, not library. The problem is it does not allow the user to delete anything. The option simply isn't listed in the context menu and hotkeys don't work either. I do have allow deletes enabled in Kodi settings, and when I SSH in as that same user I have no problem deleting files, so OS permissions are correct. The mountpoint looks like:
sftp://10.1.1.10:22/E:/Media
I can provide debug logs, etc, if needed but this is 100% reproducible.
Anyway in hopes of making Kodi more responsive, I'm trying out SFTP from Kodi running on a ShieldTV connecting to a Windows 10 machine with Microsoft's built-in openssh. This works fine and returns directory listings essentially identically, also in file/video mode, not library. The problem is it does not allow the user to delete anything. The option simply isn't listed in the context menu and hotkeys don't work either. I do have allow deletes enabled in Kodi settings, and when I SSH in as that same user I have no problem deleting files, so OS permissions are correct. The mountpoint looks like:
sftp://10.1.1.10:22/E:/Media
I can provide debug logs, etc, if needed but this is 100% reproducible.