listDir (method)
Lists the contents of a remote directory.
Syntax
- (NSString*)listDir:(BOOL)includeFiles :(BOOL)includeDirectories;
public func listDir(_ includeFiles: Bool, _ includeDirectories: Bool) throws -> String
Remarks
Use the IncludeFiles and IncludeDirectories parameters to tune up the output. The output of IncludeFiles also includes symbolic links.
This method returns a human-readable string containing the requested list. It also fires ListEntry for each entry in the list, propagating its details in CurrentListEntry.
This method uses some heuristics internally by choosing the most appropriate listing method among MLSD, NLST, and LIST.