8000 minor #9264 Note about trailing-slash when using Finder with FTP (chu… · symfony/symfony-docs@53334e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 53334e3

Browse files
committed
minor #9264 Note about trailing-slash when using Finder with FTP (chucky2305, javiereguiluz)
This PR was submitted for the 4.0 branch but it was merged into the 2.7 branch instead (closes #9264). Discussion ---------- Note about trailing-slash when using Finder with FTP Added a short note on how to use the finder with FTP. There was nothing written about the need of the trailing slash. Commits ------- 1b9f488 Reword 0ff04fd Update finder.rst 8a8ba4f Update finder.rst
2 parents 530cd76 + 1b9f488 commit 53334e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/finder.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ It's also possible to ignore directories that you don't have permission to read:
117117
As the Finder uses PHP iterators, you can pass any URL with a supported
118118
`protocol`_::
119119

120+
// always add a trailing slash when looking for in the FTP root dir
121+
$finder->in('ftp://example.com/');
122+
123+
// you can also look for in a FTP directory
120124
$finder->in('ftp://example.com/pub/');
121125

122126
And it also works with user-defined streams::

0 commit comments

Comments
 (0)
0