public interface ListCommand
| Modifier and Type | Method and Description |
|---|---|
List<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,FileAttributes>> |
list(FileConnectorConfig config,
String directoryPath,
boolean recursive,
org.mule.runtime.api.metadata.MediaType mediaType,
Predicate<FileAttributes> matcher)
Lists files under the considerations of
FileSystem.list(FileConnectorConfig, String, boolean, MediaType, Predicate) |
List<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,FileAttributes>> list(FileConnectorConfig config, String directoryPath, boolean recursive, org.mule.runtime.api.metadata.MediaType mediaType, Predicate<FileAttributes> matcher)
FileSystem.list(FileConnectorConfig, String, boolean, MediaType, Predicate)config - the config that is parameterizing this operationdirectoryPath - the path to the directory to be listedrecursive - whether to include the contents of sub-directoriesmatcher - a Predicate of FileAttributes used to filter the output listmediaType - the MediaType of the message which entered the operationList of Result objects each one containing each file's content in the payload and metadata in the attributesIllegalArgumentException - if directoryPath points to a file which doesn't exists or is not a directoryCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.