-
Notifications
You must be signed in to change notification settings - Fork 163
Closed
Labels
Description
Hi! Thanks again for all your work on gcsfs; it's a great bit of software! I think I've bumped into a small bug...
Minimal Complete Verifiable Example:
import gcsfs
gcs = gcsfs.GCSFileSystem()
gcs.makedir('gs://<bucket>/<path>')What happened:
In [48]: gcs.makedir(os.path.join(PATH, 'v1'))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-48-63d29a261feb> in <module>
----> 1 gcs.makedir(os.path.join(PATH, 'v1'))
~/miniconda3/envs/nowcasting_dataset/lib/python3.9/site-packages/fsspec/spec.py in makedir(self, path, create_parents, **kwargs)
1151 def makedir(self, path, create_parents=True, **kwargs):
1152 """Alias of :ref:`FilesystemSpec.mkdir`."""
-> 1153 return self.mkdir(path, create_parents=create_parents, **kwargs)
1154
1155 def mkdirs(self, path, exist_ok=False):
~/miniconda3/envs/nowcasting_dataset/lib/python3.9/site-packages/fsspec/asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~/miniconda3/envs/nowcasting_dataset/lib/python3.9/site-packages/fsspec/asyn.py in sync(loop, func, timeout, *args, **kwargs)
51 except RuntimeError:
52 pass
---> 53 coro = func(*args, **kwargs)
54 result = [None]
55 event = threading.Event()
TypeError: _mkdir() got an unexpected keyword argument 'create_parents'
Environment:
- GCSFS version: 2021.07.0
- Python version: 3.9
- Operating System: Ubuntu Linux 21.04 (running on a VM in Google Cloud)
- Install method: conda
Conchylicultor