In [1]: import fsspec
...: from pyarrow.fs import PyFileSystem, FSSpecHandler
In [2]: memfs = fsspec.filesystem("memory")
In [3]: fs_handle = FSSpecHandler(memfs)
In [4]: fs_handle.delete_root_dir_contents()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[4], line 1
----> 1 fs_handle.delete_root_dir_contents()
File ~/.global-python/lib/python3.13/site-packages/pyarrow/fs.py:385, in FSSpecHandler.delete_root_dir_contents(self)
384 def delete_root_dir_contents(self):
--> 385 self._delete_dir_contents("/")
TypeError: FSSpecHandler._delete_dir_contents() missing 1 required positional argument: 'missing_dir_ok'
In [5]: