s3fs icon indicating copy to clipboard operation
s3fs copied to clipboard

rmdir raises exceptions in 0.1.2

Open stucchio opened this issue 8 years ago • 1 comments

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>.

stucchio avatar Dec 18 '17 15:12 stucchio

Would you be interested in submitting a PR with relevant test?

martindurant avatar Dec 21 '17 20:12 martindurant