Skip to content

Commit f9f737d

Browse files
committed
minor #9708 Note about relative file paths (xosofox)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #9708). Discussion ---------- Note about relative file paths This fixes #9674. Commits ------- 2a3b85a Note about relative file paths
2 parents 6300ab1 + 2a3b85a commit f9f737d

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-
// 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)