Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AzureBlobFileSystem.mkdir seems to have no effect with exist_ok=True #130

Closed
andersbogsnes opened this issue Nov 16, 2020 · 1 comment
Closed

Comments

@andersbogsnes
Copy link
Contributor

What happened:
When creating a new directory using the AzureBlobFileSystem, mkdir has no effect if the exist_ok flag is True, even though the container does not exist.

What you expected to happen:
The container to be created, and if the code is run again, no exception will be raised

Minimal Complete Verifiable Example:

>>> from adlfs import AzureBlobFileSystem
>>> fs = AzureBlobFileSystem(account_name="myaccount", account_key="myaccountkey")
>>> fs.ls(".")
[]
>>> fs.mkdir("testcontainer", exist_ok=True)
>>> fs.ls(".")
[]
>>> fs.mkdir("testcontainer")
>>> fs.ls(".")
["testcontainer/"]

Anything else we need to know?:

Environment:

  • adlfs version: 0.5.5
  • Dask version: N/A
  • Python version: 3.8
  • Operating System: Ubuntu 20.04
  • Install method (conda, pip, source): pip
@hayesgb
Copy link
Collaborator

hayesgb commented Mar 23, 2021

Release 0.7.0 aligns adlfs mkdir() method to fsspec, per discussion here

@hayesgb hayesgb closed this as completed Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants