public interface FileSystemView
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeWorkingDirectory(String dir)
Change directory.
|
void |
dispose()
Dispose file system view.
|
FtpFile |
getFile(String file)
Get file object.
|
FtpFile |
getHomeDirectory()
Get the user home directory.
|
FtpFile |
getWorkingDirectory()
Get user current directory.
|
boolean |
isRandomAccessible()
Does the file system support random file access?
|
FtpFile getHomeDirectory() throws FtpException
FtpFile for the users home directoryFtpExceptionFtpFile getWorkingDirectory() throws FtpException
FtpFile for the users current directoryFtpExceptionboolean changeWorkingDirectory(String dir) throws FtpException
dir - The path of the directory to set as the current directory for the userFtpExceptionFtpFile getFile(String file) throws FtpException
file - The path to the file to getFtpFile for the provided pathFtpExceptionboolean isRandomAccessible()
throws FtpException
FtpExceptionvoid dispose()
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.