public class VirtualFileSystemView extends Object implements org.apache.ftpserver.ftplet.FileSystemView
| Modifier and Type | Field and Description |
|---|---|
private VirtualPath |
currentDirectory |
private VirtualFileSystem |
fileSystem |
private static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
VirtualFileSystemView(org.apache.ftpserver.ftplet.User user,
VirtualFileSystem fileSystem) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeWorkingDirectory(String targetPath) |
void |
dispose() |
org.apache.ftpserver.ftplet.FtpFile |
getFile(String fileName) |
org.apache.ftpserver.ftplet.FtpFile |
getHomeDirectory() |
org.apache.ftpserver.ftplet.FtpFile |
getWorkingDirectory() |
boolean |
isRandomAccessible() |
private static final org.slf4j.Logger LOG
private final VirtualFileSystem fileSystem
private VirtualPath currentDirectory
public VirtualFileSystemView(org.apache.ftpserver.ftplet.User user,
VirtualFileSystem fileSystem)
throws IllegalArgumentException
IllegalArgumentExceptionpublic org.apache.ftpserver.ftplet.FtpFile getHomeDirectory()
getHomeDirectory in interface org.apache.ftpserver.ftplet.FileSystemViewpublic org.apache.ftpserver.ftplet.FtpFile getWorkingDirectory()
getWorkingDirectory in interface org.apache.ftpserver.ftplet.FileSystemViewpublic boolean changeWorkingDirectory(String targetPath)
changeWorkingDirectory in interface org.apache.ftpserver.ftplet.FileSystemViewpublic org.apache.ftpserver.ftplet.FtpFile getFile(String fileName) throws org.apache.ftpserver.ftplet.FtpException
getFile in interface org.apache.ftpserver.ftplet.FileSystemVieworg.apache.ftpserver.ftplet.FtpExceptionpublic boolean isRandomAccessible()
isRandomAccessible in interface org.apache.ftpserver.ftplet.FileSystemViewpublic void dispose()
dispose in interface org.apache.ftpserver.ftplet.FileSystemViewCopyright © 2023 Apache NiFi Project. All rights reserved.