Inconsistent handling of file_path
arg in convenience functions wrt percent-encoding
#111
Labels
bug
Something isn't working
Consider the following reprex:
Created on 2024-01-17 with reprex v2.1.0
As can be seen in the example above,
gl_get_file()
requires thefile_path
argument to be percent-encoded whilegl_file_exists()
requires the opposite. This is confusing. I think gitlabr should instead expect thefile_path
/path
arguments to be unescaped, i.e. literal, in all functions and do the necessary escaping internally. This would be more convenient and less error-prone for users.The text was updated successfully, but these errors were encountered: