From 0fb9a0add2e52a4478c936a98664b13c16b00df7 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 16 Nov 2021 09:28:20 +0100 Subject: [PATCH] [Filesystem] Minor tweaks --- components/filesystem.rst | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/components/filesystem.rst b/components/filesystem.rst index d739526b84f..46c88d73d7d 100644 --- a/components/filesystem.rst +++ b/components/filesystem.rst @@ -32,24 +32,12 @@ endpoint for filesystem operations:: echo "An error occurred while creating your directory at ".$exception->getPath(); } -.. note:: - - Methods :method:`Symfony\\Component\\Filesystem\\Filesystem::mkdir`, - :method:`Symfony\\Component\\Filesystem\\Filesystem::exists`, - :method:`Symfony\\Component\\Filesystem\\Filesystem::touch`, - :method:`Symfony\\Component\\Filesystem\\Filesystem::remove`, - :method:`Symfony\\Component\\Filesystem\\Filesystem::chmod`, - :method:`Symfony\\Component\\Filesystem\\Filesystem::chown` and - :method:`Symfony\\Component\\Filesystem\\Filesystem::chgrp` can receive a - string, an array or any object implementing :phpclass:`Traversable` as - the target argument. - ``mkdir`` ~~~~~~~~~ :method:`Symfony\\Component\\Filesystem\\Filesystem::mkdir` creates a directory recursively. On POSIX filesystems, directories are created with a default mode value -`0777`. You can use the second argument to set your own mode:: +``0777``. You can use the second argument to set your own mode:: $filesystem->mkdir('/tmp/photos', 0700);