Seen that behaviour twice already.
I've code to delete folder from DiskShare.
But if I'm open DiskEntry with empty file path and then will call rmDir(), library deletes all files from that DiskShare.
Thanks for the report, indeed, using the empty path, it would select all files and directories for deletion. I've added a check that the path is non-null and non-empty.
Seen that behaviour twice already. I've code to delete folder from DiskShare. But if I'm open DiskEntry with empty file path and then will call rmDir(), library deletes all files from that DiskShare.
Kotlin Code:
I'm expecting exception here on share.open() as object not exists ... or something similar. Or fail of rmDir() call. But definitely not delete all.
Library version: 0.11.5 Samba version: 4.15.13-Ubuntu Server version: Ubuntu 22.04.1 User has read-write permission