You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If name is something like ~/NERSC/key.pem then Path.exists() will return False, even though the file does exist at that location, and the client will remain unauthenticated, which is very confusing.
There's at least two options that could be reasonable:
Add Path.expanduser() after each Path constructor call
Throw an error if expanduser() results in a different path if you want to force the user to provide an absolute path or path relative to the working dir
The text was updated successfully, but these errors were encountered:
@MrCreosote Thanks for report. I think your first suggest is probably the way to go. @tylern4 would you be able to take a look at fixed this up, as I am currently out of action.
sfapi_client/src/sfapi_client/_async/client.py
Lines 314 to 317 in 467c2cc
If
name
is something like~/NERSC/key.pem
thenPath.exists()
will returnFalse
, even though the file does exist at that location, and the client will remain unauthenticated, which is very confusing.There's at least two options that could be reasonable:
Path.expanduser()
after each Path constructor callexpanduser()
results in a different path if you want to force the user to provide an absolute path or path relative to the working dirThe text was updated successfully, but these errors were encountered: