From 01597a12001c3f8bad0a159b035ad081b09e2d23 Mon Sep 17 00:00:00 2001 From: Max Schindler Date: Wed, 14 Feb 2018 09:42:59 +0100 Subject: [PATCH 1/3] Update finder.rst Added a short note on how to use the finder with FTP. There was nothing written about the need of the trailing slash. --- components/finder.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/components/finder.rst b/components/finder.rst index f20b2d5e120..10e2bc94c6f 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -114,6 +114,7 @@ It's also possible to ignore directories that you don't have permission to read: As the Finder uses PHP iterators, you can pass any URL with a supported `protocol`_:: +(Note: Even if you don`t specify a path, your URL should end with a `/`) $finder->in('ftp://example.com/pub/'); From d9d682aa7d627ea22cc3a7b60b168aa8a7e7044a Mon Sep 17 00:00:00 2001 From: Max Schindler Date: Wed, 14 Feb 2018 10:41:52 +0100 Subject: [PATCH 2/3] Update finder.rst --- components/finder.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/finder.rst b/components/finder.rst index 10e2bc94c6f..6176519cfc8 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -114,7 +114,11 @@ It's also possible to ignore directories that you don't have permission to read: As the Finder uses PHP iterators, you can pass any URL with a supported `protocol`_:: -(Note: Even if you don`t specify a path, your URL should end with a `/`) +(Note: Even if you dont want to enter a specitic path in your ftp-server and instead just go to the root of your server, your URL should end with a `/`) + + $finder->in('ftp://example.com/'); + +Use this to go directly to subfolder "pub": $finder->in('ftp://example.com/pub/'); From 8b28eb5255513c2083148c5178258f2b35fb4979 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 15 Feb 2018 12:59:06 +0100 Subject: [PATCH 3/3] Reword --- components/finder.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/finder.rst b/components/finder.rst index 6176519cfc8..8f9b9bf820f 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -114,12 +114,11 @@ It's also possible to ignore directories that you don't have permission to read: As the Finder uses PHP iterators, you can pass any URL with a supported `protocol`_:: -(Note: Even if you dont want to enter a specitic path in your ftp-server and instead just go to the root of your server, your URL should end with a `/`) + // always add a trailing slash when looking for in the FTP root dir $finder->in('ftp://example.com/'); -Use this to go directly to subfolder "pub": - + // you can also look for in a FTP directory $finder->in('ftp://example.com/pub/'); And it also works with user-defined streams::