-
Notifications
You must be signed in to change notification settings - Fork 354
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
utils.infer_storage_options does not support passwords with hashes #171
Comments
There is not really a way to do this because, as you remark, some characters have special meaning in the context of a URI. In the case of FTP, you can pass the arguments explicitly:
Other FSs might have slightly different names for their parameters, so please check the docstrings. |
Hm... According to page 2 of RFC 1738 the character "#" is unsafe and should always be encoded.
Is my understanding correct ? Would it be possible to make fsspec handle encoded characters in a url ?
|
Hm, but people would be used to ftp and ssh paths not necessarily to follow URL conventions. I suppose supporting encoding can be ok. |
print (fsspec.utils.infer_storage_options('ftp://user:password@host:21/path'))
{'protocol': 'ftp', 'path': '/path', 'host': 'host', 'port': 21, 'username': 'user', 'password': 'password'}
print (fsspec.utils.infer_storage_options('ftp://user:password#@host:21/path'))
The text was updated successfully, but these errors were encountered: