The example for downloading files doesn't match the parameters we need to provide for the DownloadFile method.
We need to provide an actual file, not the name to the file we want to write.
I agree with the current implementation of the DownloadFile method where creating the file shouldn't be the responsibility of this library. The user can create their own file in whatever directory they like and then just pass the reference to this and we can stream the video contents into it.
The example for downloading files doesn't match the parameters we need to provide for the DownloadFile method.
We need to provide an actual file, not the name to the file we want to write.
I agree with the current implementation of the
DownloadFile
method where creating the file shouldn't be the responsibility of this library. The user can create their own file in whatever directory they like and then just pass the reference to this and we can stream the video contents into it.