8000 minor #8323 Update filesystem.rst (flip111) · symfony/symfony-docs@c368140 · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit c368140

Browse files
committed
minor #8323 Update filesystem.rst (flip111)
This PR was squashed before being merged into the 2.7 branch (closes #8323). Discussion ---------- Update filesystem.rst add information about umask to directory creation Commits ------- a472f32 Update filesystem.rst
2 parents 355bf42 + a472f32 commit c368140

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

components/filesystem.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ On POSIX filesystems, directories are created with a default mode value
6868

6969
This function ignores already existing directories.
7070

71+
.. note::
72+
73+
The directory permissions are affected by the current `umask`_.
74+
Set the umask for your webserver, use PHP's :phpfunction:`umask`
75+
function or use the :phpfunction:`chmod` function after the
76+
directory has been created.
77+
7178
exists
7279
~~~~~~
7380

@@ -278,3 +285,4 @@ Learn More
278285
filesystem/*
279286

280287
.. _`Packagist`: https://packagist.org/packages/symfony/filesystem
288+
.. _`umask`: https://en.wikipedia.org/wiki/Umask

0 commit comments

Comments
 (0)
0