public class NativeFileSystemView extends Object implements FileSystemView
Modifier | Constructor and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
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?
|
protected NativeFileSystemView(User user) throws FtpException
NativeFileSystemFactory
insteadFtpException
public NativeFileSystemView(User user, boolean caseInsensitive) throws FtpException
NativeFileSystemFactory
insteadFtpException
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 getFtpFile
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 userpublic boolean isRandomAccessible()
isRandomAccessible
in interface FileSystemView
public void dispose()
dispose
in interface FileSystemView
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.