public class DirectoryListenerCommand extends org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem>
LocalFileCommand which implements support functionality for DirectoryListener| Constructor and Description |
|---|
DirectoryListenerCommand(LocalFileSystem fileSystem) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doMkDirs(Path directoryPath)
|
protected boolean |
exists(Path path) |
protected Path |
getBasePath(org.mule.extension.file.common.api.FileSystem fileSystem) |
Path |
resolveRootPath(String directory)
Resolves the root path on which the listener needs to be created
|
public DirectoryListenerCommand(LocalFileSystem fileSystem)
public Path resolveRootPath(String directory)
directory - the path that the user configured on the listenerPath to listen onprotected Path getBasePath(org.mule.extension.file.common.api.FileSystem fileSystem)
getBasePath in class org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem>protected boolean exists(Path path)
exists in class org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem>protected void doMkDirs(Path directoryPath)
doMkDirs in class org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem>directoryPath - a Path pointing to the directory you want to createCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.