s3fs
s3fs copied to clipboard
rmdir raises exceptions in 0.1.2
I'm running into the following error with rmdir. The info method says Gets details only for a specific key, directories/buckets cannot be used with info.
However, the rmdir function on line 641 says if (key and self.info(path)['Size'] == 0) or not key:. As one might expect, this results in File "/opt/conda/lib/python3.6/site-packages/s3fs/core.py", line 402, in info raise FileNotFoundError(path) FileNotFoundError: <my path redacted>.
Would you be interested in submitting a PR with relevant test?