Package org.apache.ftpserver.ftplet
Interface FileSystemView
public interface FileSystemView
This is an abstraction over the user file system view.
- Author:
- Apache MINA Project
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChange directory.voiddispose()Dispose file system view.Get file object.Get the user home directory.Get user current directory.booleanDoes the file system support random file access?
-
Method Details
-
getHomeDirectory
Get the user home directory.- Returns:
- The
FtpFilefor the users home directory - Throws:
FtpException- When the Home Directory can't be retrieved
-
getWorkingDirectory
Get user current directory.- Returns:
- The
FtpFilefor the users current directory - Throws:
FtpException- When the working Directory can't be retrieved
-
changeWorkingDirectory
Change directory.- Parameters:
dir- The path of the directory to set as the current directory for the user- Returns:
trueif successful- Throws:
FtpException- When the change to Home Directory can't be done
-
getFile
Get file object.- Parameters:
file- The path to the file to get- Returns:
- The
FtpFilefor the provided path - Throws:
FtpException- When the file can't be retrieved
-
isRandomAccessible
Does the file system support random file access?- Returns:
trueif the file supports random access- Throws:
FtpException- When random file access isn't supported
-
dispose
void dispose()Dispose file system view.
-