Skip to content

Core\FileTransfer\Listing

The files and folders of one folder, which list returns. Use it in a foreach loop. Each step gives one Core\FileTransfer\Entry.

Core\FileTransfer\Listing gives the files and folders in one folder on a server. Core\FileTransfer\Connection::list returns it. You read it with a foreach loop. Each item is a Core\FileTransfer\Entry.

The listing does not include . and ... The server chooses the order of the entries. Sort the names yourself when the order matters.

A listing gives what is directly in the folder. It does not give what is in its sub-folders. walk gives every file and folder below a folder.

Returned by

You get a Core\FileTransfer\Listing from these methods: