8000 Note about relative file paths · symfony/symfony-docs@2a3b85a · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a3b85a

Browse files
xosofoxjaviereguiluz
authored andcommitted
Note about relative file paths
!9674
1 parent 6300ab1 commit 2a3b85a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/filesystem.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ exists
8383
presence of one or more files or directories and returns ``false`` if any of
8484
them is missing::
8585

86-
8818 // this directory exists, return true
86+
// if this absolute directory exists, return true
8787
$fileSystem->exists('/tmp/photos');
8888

8989
// rabbit.jpg exists, bottle.png does not exist, return false
@@ -93,6 +93,10 @@ them is missing::
9393

9494
You can pass an array or any :phpclass:`Traversable` object as the first
9595
argument.
96+
97+
.. note::
98+
If you are using non-absolute paths, the paths are relative to
99+
the directory where the running PHP script is stored
96100

97101
copy
98102
~~~~

0 commit comments

Comments
 (0)
0