cephfs-shell: saving files doesn't work as expected
The "get" command in cephfs-shell doesn't behave as expected. Suppose I do this to save a file in a directory that lives on cephfs:
CephFS:~/volumes/_nogroup/client1/6a0ce533-aa3d-4413-aada-43757ed11949/dir>>> get c4BCAcYhN5u8K9c0mUaIEQ /tmp/foo
My assumption is that this is modeled after the old command-line ftp program. If so, then I would expect that that would save the file in a local file called "/tmp/foo", but instead it creates a directory "/tmp/foo" and stores a file called c4BCAcYhN5u8K9c0mUaIEQ in there.
When using the get command on a single file, it should attempt to save the file directly to the filename specified, and only if the terminating dentry turns out to already be a directory should it then save the file inside it. It should never create a directory on its own like this.