plneto / Synology.Api.Client

.NET/C# client for the Synology API
MIT License
21 stars 13 forks source link

Fix `FileStationListEndpoint().List()` when used with `pattern` #11

Closed FroggieFrog closed 1 year ago

FroggieFrog commented 1 year ago

My DSM 6 and my DSM 7 machines always returned a 502 BadGateway when I tried to check if a file is present.

The issue is a not correct formatted parameter pattern. The doc says:

  1. You can use "," to separate multiple glob patterns.

But the lib always encoded the pattern as ["file","secondFile"] or ["file"] instead of the correct file,secondFile or file.

plneto commented 1 year ago

Thanks for fixing this.