Skip to content

[Python] missing required argument when calling pyarrow FSSpecHandler delete_root_dir_contents #47559

@TennyZhuang

Description

@TennyZhuang

Describe the bug, including details regarding any error messages, version, and platform.

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]: 

Component(s)

Python

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions