|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.filesystem.nativefs.impl.NativeFileSystemView
public class NativeFileSystemView
Internal class, do not use directly. File system view based on native file system. Here the root directory will be user virtual root (/).
Constructor Summary | |
---|---|
protected |
NativeFileSystemView(User user)
Constructor - internal do not use directly, use NativeFileSystemFactory instead |
|
NativeFileSystemView(User user,
boolean caseInsensitive)
Constructor - internal do not use directly, use NativeFileSystemFactory instead |
Method Summary | |
---|---|
boolean |
changeWorkingDirectory(String dir)
Change directory. |
void |
dispose()
Dispose file system view - does nothing. |
FtpFile |
getFile(String file)
Get file object. |
FtpFile |
getHomeDirectory()
Get the user home directory. |
FtpFile |
getWorkingDirectory()
Get the current directory. |
boolean |
isRandomAccessible()
Is the file content random accessible? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NativeFileSystemView(User user) throws FtpException
NativeFileSystemFactory
instead
FtpException
public NativeFileSystemView(User user, boolean caseInsensitive) throws FtpException
NativeFileSystemFactory
instead
FtpException
Method Detail |
---|
public FtpFile getHomeDirectory()
getHomeDirectory
in interface FileSystemView
FtpFile
for the users home directorypublic FtpFile getWorkingDirectory()
getWorkingDirectory
in interface FileSystemView
FtpFile
for the users current directorypublic FtpFile getFile(String file)
getFile
in interface FileSystemView
file
- The path to the file to get
FtpFile
for the provided pathpublic boolean changeWorkingDirectory(String dir)
changeWorkingDirectory
in interface FileSystemView
dir
- The path of the directory to set as the current directory for the user
public boolean isRandomAccessible()
isRandomAccessible
in interface FileSystemView
public void dispose()
dispose
in interface FileSystemView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |