From 2bc754d550e047356449a065e80f3576de11b49e Mon Sep 17 00:00:00 2001 From: Tom Van Looy Date: Mon, 29 Apr 2013 23:16:17 +0300 Subject: [PATCH] Document ignoreUnreadableDirs | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | 2.3 | Fixed tickets | 2574 --- components/finder.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/finder.rst b/components/finder.rst index ab1cda43e82..673489267bb 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -96,6 +96,13 @@ Exclude directories from matching with the $finder->in(__DIR__)->exclude('ruby'); +.. versionadded:: 2.3 + Ignore unreadable dirs support was added in version 2.3. + +Ignore directories that you don't have permissions on:: + + $finder->ignoreUnreadableDirs()->in(__DIR__); + As the Finder uses PHP iterators, you can pass any URL with a supported `protocol`_::