We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e64f0a1 commit 285094fCopy full SHA for 285094f
fsspec/core.py
@@ -360,6 +360,20 @@ def url_to_fs(url, **kwargs):
360
urlpath : str
361
The file-systems-specific URL for ``url``.
362
"""
363
+ # non-FS arguments that appear in fsspec.open()
364
+ # inspect could keep this in sync with open()'s signature
365
+ known_kwargs = {
366
+ "auto_mkdir",
367
+ "compression",
368
+ "encoding",
369
+ "errors",
370
+ "expand",
371
+ "mode",
372
+ "name_function",
373
+ "newline",
374
+ "num",
375
+ }
376
+ kwargs = {k: v for k, v in kwargs.items() if k not in known_kwargs}
377
chain = _un_chain(url, kwargs)
378
inkwargs = {}
379
# Reverse iterate the chain, creating a nested target_* structure
0 commit comments