omniClientGetLocalFile

Defined in OmniClient.h

OmniClientRequestId omniClientGetLocalFile(char const *url, bool download, void *userData, OmniClientGetLocalFileCallback callback)

Get a local file name for the URL.

If the URL already points to a local file, it is returned directly Otherwise, this (optionally) downloads the file to a local location and returns that location

Note

If this function is called after omniClientShutdown, kInvalidRequestId will be returned, and the callback will not be called.

Parameters

download – If this is true, the file is downloaded to the local file location. False returns where it would have been downloaded to, but doesn’t actually download anything. Note that even with false, the file may exist in the local location if it was previously downloaded.