diff --git a/components/filesystem/introduction.rst b/components/filesystem/introduction.rst index 66e93c51263..fa7c0afbf06 100644 --- a/components/filesystem/introduction.rst +++ b/components/filesystem/introduction.rst @@ -31,7 +31,7 @@ endpoint for filesystem operations:: $fs = new Filesystem(); try { - $fs->mkdir('/tmp/random/dir/' . mt_rand()); + $fs->mkdir('/tmp/random/dir/'.mt_rand()); } catch (IOExceptionInterface $e) { echo "An error occurred while creating your directory at ".$e->getPath(); } @@ -52,7 +52,7 @@ mkdir ~~~~~ :method:`Symfony\\Component\\Filesystem\\Filesystem::mkdir` creates a directory. -On posix filesystems, directories are created with a default mode value +On POSIX filesystems, directories are created with a default mode value `0777`. You can use the second argument to set your own mode:: $fs->mkdir('/tmp/photos', 0700);