diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-19 20:18:58 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-19 20:18:58 +0000 |
commit | 8f533b9e8c563d04207c9e43e1a4aafd5c29d60f (patch) | |
tree | 7aec50eeac6cecbd0f3adc1dbd1ac37eef3a3c68 | |
parent | 16fa74fde76fae92cf53fd25b2adf4c52fa57a8f (diff) | |
download | brdo-8f533b9e8c563d04207c9e43e1a4aafd5c29d60f.tar.gz brdo-8f533b9e8c563d04207c9e43e1a4aafd5c29d60f.tar.bz2 |
- Patch #322777 by Damien Tournoud: file_check_directory() was badly documented.
-rw-r--r-- | includes/file.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/file.inc b/includes/file.inc index ecf2edb93..bc6134d60 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -148,8 +148,9 @@ function file_create_path($destination = NULL) { * @param $directory * A string containing the name of a directory path. * @param $mode - * A Boolean value to indicate if the directory should be created if it does - * not exist or made writable if it is read-only. + * A bitmask to indicate if the directory should be created if it does + * not exist (FILE_CREATE_DIRECTORY) or made writable if it is read-only + * (FILE_MODIFY_PERMISSIONS). * @param $form_item * An optional string containing the name of a form item that any errors will * be attached to. This is useful for settings forms that require the user to @@ -158,7 +159,7 @@ function file_create_path($destination = NULL) { * @return * FALSE when directory not found, or TRUE when directory exists. */ -function file_check_directory(&$directory, $mode = FALSE, $form_item = NULL) { +function file_check_directory(&$directory, $mode = 0, $form_item = NULL) { $directory = rtrim($directory, '/\\'); // Check if directory exists. |