Skip to content

Conversation

@mpolano
Copy link
Contributor

@mpolano mpolano commented Aug 25, 2022

Hi Sébastien,

I hope I've correctly interpreted your intention for the URL encoding.
Now all file functions accept a file_path that includes folders like "test-folder/dataset.csv" and each function takes care of URL encoding appropriately.

In order to make it work I've also modified gl_file_list() adding a parameter to specify the path. This requires on the API call to add a query parameter (as documented here).

I found what I think is a bug in gl_file_exists() that I've fixed: looking for files in an empty repository produced an error.

I have added tests to take into account folders trying to follow what you already did without folders.

- gl_file_exists() bug fix for empty repository
- gl_get_file(), gl_push_file(), gl_delete_file() updated to URL encode file_path
@statnmap
Copy link
Contributor

Thanks. I'll test it in a few days, when back from holidays 😃

@statnmap
Copy link
Contributor

Less than 2 years to achieve this one...
This was a big one, and I am happy to close it :)
Thank you for your nice contribution!
I retrieved all your commit in this PR: #106

@statnmap statnmap closed this May 14, 2024
@mpolano
Copy link
Contributor Author

mpolano commented May 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants