You are here

function _stage_file_proxy_fetch in Stage File Proxy 7

Same name and namespace in other branches
  1. 6 stage_file_proxy.module \_stage_file_proxy_fetch()

Downloads a remote file and saves it to the local files directory.

Parameters

string $server: The origin server URL.

string $remote_file_dir: The relative path to the files directory on the origin server.

string $relative_path: The path to the requested resource relative to the files directory.

Return value

bool Returns true if the content was downloaded, otherwise false.

Deprecated

Use stage_file_proxy_fetch_file() instead.

File

./stage_file_proxy.module, line 41
Stage File Proxy Module.

Code

function _stage_file_proxy_fetch($server, $remote_file_dir, $relative_path) {
  return (bool) stage_file_proxy_fetch_file($relative_path);
}