pCloud / pcloud-sdk-swift

The official pCloud Swift SDK for iOS and macOS for integration with the pCloud API.
MIT License
22 stars 7 forks source link

Fixed `PCloudAPI.Stat.Error` #16

Closed tobihagemann closed 2 years ago

tobihagemann commented 2 years ago

I think I made a mistake in my last PR and didn't quite understand the error codes of pCloud until now. I couldn't find this error code in the pCloud API documentation but I believe this one would make more sense.

tmpit commented 2 years ago

I would have to check with our API team to confirm if 2001 can be returned from that method or not.

tobihagemann commented 2 years ago

If I had to guess, 2001 should only be possible when calling the method with path (which we don't). But a confirmation would be great. 👍

tmpit commented 2 years ago

Turns out 2001 is not returned from that method at all. 1001, 2002 and 2055 are returned for problems with the path. Merging.