function _make_download_copy

8.0.x make.download.inc _make_download_copy($folder)
6.x make.download.inc _make_download_copy($folder)
7.x make.download.inc _make_download_copy($folder)
master make.download.inc _make_download_copy($folder)

Wrapper to drush_download_copy().

Parameters

string $folder: The location of the folder to copy.

Return value

string The location of the folder, or FALSE on failure.

1 call to _make_download_copy()
make_download_copy in commands/make/make.download.inc
Copies a folder the specified location.

File

commands/make/make.download.inc, line 190
Download-specific functions for Drush Make.

Code

function _make_download_copy($folder) {
  if (substr($folder, 0, 7) == 'file://') {
    $folder = substr($folder, 7);
  }

  if (is_dir($folder)) {
    return $folder;
  }
  return FALSE;
}