cephfs-shell: rmdir with -p attempts to delete non-dir files as well
3 - minor
Pull request ID:
Going through do_rmdir in cephfs-shell, I don't see any checks that stop the method from deleting non-directory files.
Reproducing the bug -
CephFS:~/>>> ls dir2/ file1 CephFS:~/>>> rmdir -p dir2 CephFS:~/>>> ls
Ideally, rmdir shouldn't do that since it is only suppose to delete empty directories.