Core\FileTransfer\Walk
Every file and folder below a folder, which walk returns. Use it in a foreach loop. Each step reads at most one folder and gives one Core\FileTransfer\Entry.
Core\FileTransfer\Walk gives every file and folder below one folder on a server, including the ones in its sub-folders. Core\FileTransfer\Connection::walk returns it. You read it with a foreach loop. Each item is a Core\FileTransfer\Entry.
A folder comes first, then everything inside it, then the next entry of the same folder. The entries of one folder are sorted by name. $entry->relativePath() is the path below the folder you started from, such as 2026/01/sales.csv.
walk reads one folder at a time, while the loop runs. A symbolic link is an entry, but walk does not follow it. A walk reads folders up to 64 levels below the folder you started from. When it reaches a folder that is deeper, the next step of the loop throws an IOError.
Returned by
You get a Core\FileTransfer\Walk from these methods:
