Skip to content

Commit 43878c3

Browse files
committed
Add a note to explain the goal of the followLinks method
1 parent fd62a9a commit 43878c3

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
@@ -127,6 +127,10 @@ If you want to follow `symbolic links`_, use the ``followLinks()`` method::
127127

128128
$finder->files()->followLinks();
129129

130+
.. note::
131+
132+
Be careful, the ``followLinks`` method does not resolve links. This method makes the links to directories followed/traversed into. If we suppose a folder *followLinksFolder* which contains a folder with a file and a symlink of the folder *folder, file.txt and symlinkfolder*, thanks to the Finder component ``$finder->in('/home/user/followLinksFolder');`` will retrieve three elements *folder, folder/file.txt and symlinkfolder*. If, we use the ``followLinks`` method instead ``$finder->followLinks()->in('/home/user/followLinksFolder');``, we will retrieve also a fourth element *folder, folder/file.txt, symlinkfolder and symlinkfolder/file.txt*.
133+
130134
Version Control Files
131135
~~~~~~~~~~~~~~~~~~~~~
132136

0 commit comments

Comments
 (0)