Kodi Community Forum
SFTP vfs doesn't allow the user to delete - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: SFTP vfs doesn't allow the user to delete (/showthread.php?tid=368780)



SFTP vfs doesn't allow the user to delete - rodalpho - 2022-07-01

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.