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.
|
protected String |
getPhysicalName(String rootDir,
String currDir,
String fileName,
boolean caseInsensitive)
Get the physical canonical file name.
|
FtpFile |
getWorkingDirectory()
Get the current directory.
|
boolean |
isRandomAccessible()
Is the file content random accessible?
|
protected NativeFileSystemView(User user) throws FtpException
NativeFileSystemFactory insteadFtpExceptionpublic NativeFileSystemView(User user, boolean caseInsensitive) throws FtpException
NativeFileSystemFactory insteadFtpExceptionpublic FtpFile getHomeDirectory()
getHomeDirectory in interface FileSystemViewFtpFile for the users home directorypublic FtpFile getWorkingDirectory()
getWorkingDirectory in interface FileSystemViewFtpFile for the users current directorypublic FtpFile getFile(String file)
getFile in interface FileSystemViewfile - The path to the file to getFtpFile for the provided pathpublic boolean changeWorkingDirectory(String dir)
changeWorkingDirectory in interface FileSystemViewdir - The path of the directory to set as the current directory for the userpublic boolean isRandomAccessible()
isRandomAccessible in interface FileSystemViewpublic void dispose()
dispose in interface FileSystemViewprotected String getPhysicalName(String rootDir, String currDir, String fileName, boolean caseInsensitive)
rootDir - The root directory.currDir - The current directory. It will always be with respect to the
root directory.fileName - The input file name.Copyright © 2003–2025 The Apache Software Foundation. All rights reserved.