| Package | Description |
|---|---|
| org.mule.extension.file.common.api | |
| org.mule.extension.file.common.api.command |
| Modifier and Type | Class and Description |
|---|---|
class |
FileSystemProvider<T extends FileSystem>
Base class for a
ConnectionProvider which provides instances of
FileSystem |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractFileSystem
Base class for implementations of
FileSystem |
| Modifier and Type | Method and Description |
|---|---|
void |
StandardFileSystemOperations.copy(FileConnectorConfig config,
FileSystem fileSystem,
String sourcePath,
String targetPath,
boolean overwrite,
boolean createParentDirectories,
Event event)
Copies the file at the
sourcePath into the targetPath. |
void |
StandardFileSystemOperations.createDirectory(FileSystem fileSystem,
String directoryPath)
Creates a new directory on
directoryPath |
void |
StandardFileSystemOperations.delete(FileSystem fileSystem,
String path,
Event event)
Deletes the file pointed by
path, provided that it's not locked |
TreeNode |
StandardFileSystemOperations.list(FileConnectorConfig config,
FileSystem fileSystem,
String directoryPath,
boolean recursive,
org.mule.runtime.api.message.Message message,
FilePredicateBuilder matchWith)
Lists all the files in the
directoryPath which match the given matcher. |
void |
StandardFileSystemOperations.move(FileConnectorConfig config,
FileSystem fileSystem,
String sourcePath,
String targetPath,
boolean overwrite,
boolean createParentDirectories,
Event event)
Moves the file at the
sourcePath into the targetPath. |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,FileAttributes> |
StandardFileSystemOperations.read(FileConnectorConfig config,
FileSystem fileSystem,
org.mule.runtime.api.message.Message message,
String path,
boolean lock)
Obtains the content and metadata of a file at a given path.
|
void |
StandardFileSystemOperations.rename(FileSystem fileSystem,
String path,
String to,
boolean overwrite,
Event event)
Renames the file pointed by
path to the name provided on the to parameter |
void |
StandardFileSystemOperations.write(FileConnectorConfig config,
FileSystem fileSystem,
String path,
Object content,
FileWriteMode mode,
boolean lock,
boolean createParentDirectories,
String encoding,
Event event)
Writes the
content into the file pointed by path. |
| Modifier and Type | Class and Description |
|---|---|
class |
FileCommand<F extends FileSystem>
Base class for implementations of the Command design pattern which performs operations on a file system
|
| Modifier and Type | Field and Description |
|---|---|
protected F |
FileCommand.fileSystem |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Path |
FileCommand.getBasePath(FileSystem fileSystem)
Returns a
Path to which all non absolute paths are relative to |
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.