Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/filesystem/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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);
Expand Down