file_directory_path

Versions
4.7 – 6
file_directory_path()
7
file_directory_path($scheme = NULL)

Determine the default 'files' directory.

Return value

A string containing the path to Drupal's 'files' directory.

Related topics

▾ 11 functions call file_directory_path()

fileupload_execute in developer/examples/fileupload.module
Implementation of hook_execute().
fileupload_view in developer/examples/fileupload.module
Implementation of hook_view.
file_check_directory in includes/file.inc
Check that the directory exists and is writable. Directories need to have execute permissions to be considered a directory by FTP servers, etc.
file_create_path in includes/file.inc
Make sure the destination is a complete path and resides in the file system directory, if it is not prepend the file system directory.
file_create_url in includes/file.inc
Create the download path to a file.
file_directory_temp in includes/file.inc
Determine the default temporary directory.
hook_submit in developer/hooks/node.php
This is a hook used by node modules. It is called after validation has succeeded and before insert/update. It is used to for actions which must happen only if the node is to be saved. Usually, $node is changed in some way and then the actual saving of...
system_theme_settings in modules/system.module
Menu callback; display theme configuration for entire site and individual themes.
system_view_general in modules/system.module
upload_menu in modules/upload.module
Implementation of hook_menu().
user_configure in modules/user.module

Code

includes/file.inc, line 711

<?php
function file_directory_path() {
  return variable_get('file_directory_path', 'files');
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.