Lines Matching refs:local_file
2347 * Returns a string containing the contents of $remote_file if $local_file is left undefined or a boolean false if
2348 * the operation was unsuccessful. If $local_file is defined, returns true or false depending on the success of the
2354 * @param string|bool|resource|callable $local_file
2361 public function get($remote_file, $local_file = false, $offset = 0, $length = -1, $progressCallback = null)
2391 if (is_resource($local_file)) {
2392 $fp = $local_file;
2397 if ($local_file !== false && !is_callable($local_file)) {
2398 $fp = fopen($local_file, 'wb');
2407 $fclose_check = $local_file !== false && !is_callable($local_file) && !is_resource($local_file);
2454 if ($local_file === false) {
2456 } elseif (is_callable($local_file)) {
2457 $local_file($temp);
2497 touch($local_file, $stat['mtime'], $stat['atime']);