Package com.logicaldoc.ftp
Class FtpFileSystemView
- java.lang.Object
-
- com.logicaldoc.ftp.FtpFileSystemView
-
- All Implemented Interfaces:
org.apache.ftpserver.ftplet.FileSystemView
public class FtpFileSystemView extends Object implements org.apache.ftpserver.ftplet.FileSystemView
A logical representation of the LogicalDOC file system- Since:
- 8.0
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description FtpFileSystemView(FtpUser user, boolean caseInsensitive)
Constructor - internal do not use directly, useNativeFileSystemFactory
instead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
changeWorkingDirectory(String path)
void
dispose()
org.apache.ftpserver.ftplet.FtpFile
getFile(String path)
org.apache.ftpserver.ftplet.FtpFile
getHomeDirectory()
org.apache.ftpserver.ftplet.FtpFile
getWorkingDirectory()
boolean
isRandomAccessible()
-
-
-
Constructor Detail
-
FtpFileSystemView
public FtpFileSystemView(FtpUser user, boolean caseInsensitive) throws org.apache.ftpserver.ftplet.FtpException
Constructor - internal do not use directly, useNativeFileSystemFactory
instead- Parameters:
user
- the current usercaseInsensitive
- not used- Throws:
org.apache.ftpserver.ftplet.FtpException
- error in the FTP server
-
-
Method Detail
-
changeWorkingDirectory
public boolean changeWorkingDirectory(String path) throws org.apache.ftpserver.ftplet.FtpException
- Specified by:
changeWorkingDirectory
in interfaceorg.apache.ftpserver.ftplet.FileSystemView
- Throws:
org.apache.ftpserver.ftplet.FtpException
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.apache.ftpserver.ftplet.FileSystemView
-
getFile
public org.apache.ftpserver.ftplet.FtpFile getFile(String path) throws org.apache.ftpserver.ftplet.FtpException
- Specified by:
getFile
in interfaceorg.apache.ftpserver.ftplet.FileSystemView
- Throws:
org.apache.ftpserver.ftplet.FtpException
-
getHomeDirectory
public org.apache.ftpserver.ftplet.FtpFile getHomeDirectory() throws org.apache.ftpserver.ftplet.FtpException
- Specified by:
getHomeDirectory
in interfaceorg.apache.ftpserver.ftplet.FileSystemView
- Throws:
org.apache.ftpserver.ftplet.FtpException
-
getWorkingDirectory
public org.apache.ftpserver.ftplet.FtpFile getWorkingDirectory() throws org.apache.ftpserver.ftplet.FtpException
- Specified by:
getWorkingDirectory
in interfaceorg.apache.ftpserver.ftplet.FileSystemView
- Throws:
org.apache.ftpserver.ftplet.FtpException
-
isRandomAccessible
public boolean isRandomAccessible() throws org.apache.ftpserver.ftplet.FtpException
- Specified by:
isRandomAccessible
in interfaceorg.apache.ftpserver.ftplet.FileSystemView
- Throws:
org.apache.ftpserver.ftplet.FtpException
-
-