File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -83,20 +83,17 @@ exists
83
83
presence of one or more files or directories and returns ``false `` if any of
84
84
them is missing::
85
85
86
- // if this absolute directory exists, return true
86
+ // if this absolute directory exists, returns true
87
87
$fileSystem->exists('/tmp/photos');
88
88
89
- // rabbit.jpg exists, bottle.png does not exist, return false
89
+ // if rabbit.jpg exists and bottle.png does not exist, returns false
90
+ // non-absolute paths are relative to the directory where the running PHP script is stored
90
91
$fileSystem->exists(array('rabbit.jpg', 'bottle.png'));
91
92
92
93
.. note ::
93
94
94
95
You can pass an array or any :phpclass: `Traversable ` object as the first
95
96
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
100
97
101
98
copy
102
99
~~~~
You can’t perform that action at this time.
0 commit comments