Skip to content

Commit 35e98e6

Browse files
committed
[Filesystem] Improved the code of an example
1 parent b38430e commit 35e98e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/filesystem.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ endpoint for filesystem operations::
3434
$fileSystem = new Filesystem();
3535

3636
try {
37-
$fileSystem->mkdir('/tmp/random/dir/'.mt_rand());
37+
$fileSystem->mkdir(sys_get_temp_dir().'/'.random_int(0, 1000));
3838
} catch (IOExceptionInterface $exception) {
3939
echo "An error occurred while creating your directory at ".$exception->getPath();
4040
}

0 commit comments

Comments
 (0)