public final class LocalFileSystem
extends org.mule.extension.file.common.api.AbstractFileSystem
FileSystem for file systems mounted on the host operating system.
Whenever the FileSystem contract refers to locking, this implementation will resolve through a LocalPathLock,
which produces file system level locks which rely on the host operating system.
Also, for any method returning FileAttributes instances, a LocalFileAttributes will be used.
| Constructor and Description |
|---|
LocalFileSystem(String basePath,
MuleContext muleContext)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeToBaseDir()
No-op implementation.
|
protected org.mule.extension.file.common.api.lock.PathLock |
createLock(Path path,
Object... params) |
Class<? extends org.mule.extension.file.common.api.FileAttributes> |
getAttributesType() |
protected org.mule.extension.file.common.api.command.CopyCommand |
getCopyCommand() |
org.mule.extension.file.common.api.command.CreateDirectoryCommand |
getCreateDirectoryCommand() |
protected org.mule.extension.file.common.api.command.DeleteCommand |
getDeleteCommand() |
protected org.mule.extension.file.common.api.command.ListCommand |
getListCommand() |
protected org.mule.extension.file.common.api.command.MoveCommand |
getMoveCommand() |
protected org.mule.extension.file.common.api.command.ReadCommand |
getReadCommand() |
protected org.mule.extension.file.common.api.command.RenameCommand |
getRenameCommand() |
protected org.mule.extension.file.common.api.command.WriteCommand |
getWriteCommand() |
public LocalFileSystem(String basePath, MuleContext muleContext)
protected org.mule.extension.file.common.api.command.CopyCommand getCopyCommand()
getCopyCommand in class org.mule.extension.file.common.api.AbstractFileSystempublic org.mule.extension.file.common.api.command.CreateDirectoryCommand getCreateDirectoryCommand()
getCreateDirectoryCommand in class org.mule.extension.file.common.api.AbstractFileSystemprotected org.mule.extension.file.common.api.command.DeleteCommand getDeleteCommand()
getDeleteCommand in class org.mule.extension.file.common.api.AbstractFileSystemprotected org.mule.extension.file.common.api.command.ListCommand getListCommand()
getListCommand in class org.mule.extension.file.common.api.AbstractFileSystemprotected org.mule.extension.file.common.api.command.MoveCommand getMoveCommand()
getMoveCommand in class org.mule.extension.file.common.api.AbstractFileSystemprotected org.mule.extension.file.common.api.command.ReadCommand getReadCommand()
getReadCommand in class org.mule.extension.file.common.api.AbstractFileSystemprotected org.mule.extension.file.common.api.command.RenameCommand getRenameCommand()
getRenameCommand in class org.mule.extension.file.common.api.AbstractFileSystemprotected org.mule.extension.file.common.api.command.WriteCommand getWriteCommand()
getWriteCommand in class org.mule.extension.file.common.api.AbstractFileSystemprotected org.mule.extension.file.common.api.lock.PathLock createLock(Path path, Object... params)
createLock in class org.mule.extension.file.common.api.AbstractFileSystempublic void changeToBaseDir()
public Class<? extends org.mule.extension.file.common.api.FileAttributes> getAttributesType()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.