file_build_uri

  1. drupal
    1. 7
Versions
7 file_build_uri($path)

Given a relative path, construct a URI into Drupal's default files location.

Related topics

▾ 2 functions call file_build_uri()

file_unmanaged_copy in drupal/includes/file.inc
Copies a file to a new location without invoking the file API.
system_retrieve_file in drupal/modules/system/system.module
Attempts to get a file using drupal_http_request and to store it locally.

Code

drupal/includes/file.inc, line 913

<?php
function file_build_uri($path) {
  $uri = file_default_scheme() . '://' . $path;
  return file_stream_wrapper_uri_normalize($uri);
}
?>