Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
8f533b9e
Commit
8f533b9e
authored
Oct 19, 2008
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#322777
by Damien Tournoud: file_check_directory() was badly documented.
parent
16fa74fd
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/file.inc
+4
-3
4 additions, 3 deletions
includes/file.inc
with
4 additions
and
3 deletions
includes/file.inc
+
4
−
3
View file @
8f533b9e
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment