Unable to create a directory
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 305
- Avg merge
- 22h 37m
- Merged PRs (30d)
- 4
Description
What happened:
Trying to create a directory in a bucket and it silently fails.
What you expected to happen:
Expect a key created in a bucket.
Minimal Complete Verifiable Example:
from s3fs import S3FileSystem
s3 = S3FileSystem(anon=False)
s3.makedirs('s3://my-bucket-name/testdir', exist_ok=False) #fails to create
s3.makedirs('my-bucket-name/testdir', exist_ok=False) #fails to create
How do I create a directory in a bucket? Am I doing something wrong or is it a bug? I see conversation in #245 and I was wondering if you could please help explain what the intended behavior is.
Anything else we need to know?:
s3fs version == 0.5.0
Relevant issue here: #245
Environment:
- Dask version:
- Python version: 3.7.7
- Operating System: Ubuntu Linux
- Install method (conda, pip, source): conda
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two S3FileSystem.makedirs examples from the issue with s3fs 0.5.0, then read related issue #245 for the intended directory behavior. Done means establishing whether a bucket key should be created and resolving or clearly documenting the behavior for both path forms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100