There was an error while loading. Please reload this page.
1 parent 5a55dfa commit dd6e66cCopy full SHA for dd6e66c
components/filesystem.rst
@@ -52,6 +52,25 @@ default mode value `0777`. You can use the second argument to set your own mode.
52
$fs->mkdir('/tmp/photos', 0700);
53
54
55
+.. note::
56
+
57
+ You can pass an array or any :phpclass:`\\Traversable` object as the first
58
+ argument.
59
60
61
+Exists
62
+~~~~~~
63
64
+Exists checks the presence of all files or directories and return false if a
65
+file is missing.
66
67
+ // this directory exists, return true
68
+ $fs->exists('/tmp/photos');
69
70
+ // rabbit.jpg exists, bottle.png does not exists, return false
71
+ $fs->exists(array('rabbit.jpg', 'bottle.png));
72
73
74
.. note::
75
76
You can pass an array or any :phpclass:`\\Traversable` object as the first
0 commit comments