Closed dgw closed 4 months ago
Getting the contents of a directory from the API returns a list, not a dict, so calling .get() on the resulting data fails.
.get()
Instead, make sure the data parsed to a Mapping first, then check if the 'type' within the JSON response was 'file' or not.
Getting the contents of a directory from the API returns a list, not a dict, so calling
.get()
on the resulting data fails.Instead, make sure the data parsed to a Mapping first, then check if the 'type' within the JSON response was 'file' or not.