From cc078ab6d526724bb831e063fd94d7f563596724 Mon Sep 17 00:00:00 2001 From: "Andrew (Andrius) Marcinkevicius" Date: Thu, 29 Jan 2015 08:39:18 +0200 Subject: [PATCH] Fix typos | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.6 | Fixed tickets | --- components/filesystem/introduction.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);