Package | Description |
---|---|
com.sshtools.client.sftp | |
com.sshtools.server.vsession.commands.sftp |
Modifier and Type | Method and Description |
---|---|
SftpFile |
SftpChannel.getFile(java.lang.String path)
Utility method to obtain an
SftpFile instance for a given path. |
SftpFile[] |
SftpClientTask.getFiles(java.lang.String remote)
Download the remote files to the local computer
|
SftpFile[] |
SftpClient.getFiles(java.lang.String remote)
Download the remote files to the local computer
|
SftpFile[] |
SftpClientTask.getFiles(java.lang.String remote,
boolean resume)
Download the remote files to the local computer
|
SftpFile[] |
SftpClient.getFiles(java.lang.String remote,
boolean resume)
Download the remote files to the local computer
|
SftpFile[] |
SftpClientTask.getFiles(java.lang.String remote,
FileTransferProgress progress)
Download the remote files to the local computer.
|
SftpFile[] |
SftpClient.getFiles(java.lang.String remote,
FileTransferProgress progress)
Download the remote files to the local computer.
|
SftpFile[] |
SftpClientTask.getFiles(java.lang.String remote,
FileTransferProgress progress,
boolean resume)
Download the remote files to the local computer.
|
SftpFile[] |
SftpClient.getFiles(java.lang.String remote,
FileTransferProgress progress,
boolean resume)
Download the remote files to the local computer.
|
SftpFile[] |
SftpClientTask.getFiles(java.lang.String remote,
java.lang.String local)
Download the remote files into the local file.
|
SftpFile[] |
SftpClient.getFiles(java.lang.String remote,
java.lang.String local)
Download the remote files into the local file.
|
SftpFile[] |
SftpClientTask.getFiles(java.lang.String remote,
java.lang.String local,
boolean resume)
Download the remote files into the local file.
|
SftpFile[] |
SftpClient.getFiles(java.lang.String remote,
java.lang.String local,
boolean resume)
Download the remote files into the local file.
|
SftpFile[] |
SftpClientTask.getFiles(java.lang.String remote,
java.lang.String local,
FileTransferProgress progress,
boolean resume)
Download the remote file to the local computer.
|
SftpFile[] |
SftpClient.getFiles(java.lang.String remote,
java.lang.String local,
FileTransferProgress progress,
boolean resume)
Download the remote file to the local computer.
|
SftpFile |
SftpFile.getParent()
Get the parent of the current file.
|
SftpFile |
SftpChannel.getSingleFileResponse(SftpMessage bar,
java.lang.String messageName)
Get a single SftpFile object from a message returning SSH_FXP_NAME result.
|
SftpFile[] |
SftpClientTask.ls()
List the contents of the current remote working directory.
|
SftpFile[] |
SftpClient.ls()
List the contents of the current remote working directory.
|
SftpFile[] |
SftpClientTask.ls(java.lang.String path)
List the contents remote directory.
|
SftpFile[] |
SftpClient.ls(java.lang.String path)
List the contents remote directory.
|
SftpFile[] |
SftpClient.ls(java.lang.String filter,
boolean regexFilter,
int maximumFiles) |
SftpFile[] |
SftpClient.ls(java.lang.String path,
java.lang.String filter,
boolean regexFilter,
int maximumFiles) |
SftpFile[] |
RegularExpressionMatching.matchFilesWithPattern(SftpFile[] files,
java.lang.String fileNameRegExp)
returns each of the SftpFiles that match the pattern fileNameRegExp
|
SftpFile[] |
RegExpMatching.matchFilesWithPattern(SftpFile[] files,
java.lang.String pattern) |
SftpFile[] |
NoRegExpMatching.matchFilesWithPattern(SftpFile[] files,
java.lang.String fileNameRegExp)
returns files
|
SftpFile[] |
GlobRegExpMatching.matchFilesWithPattern(SftpFile[] files,
java.lang.String pattern) |
SftpFile[] |
SftpClientTask.matchRemoteFiles(java.lang.String remote)
Called by getFileMatches() to do regular expression pattern matching on
the files in 'remote''s parent directory.
|
SftpFile[] |
SftpClient.matchRemoteFiles(java.lang.String remote)
Called by getFileMatches() to do regular expression pattern matching on
the files in 'remote''s parent directory.
|
SftpFile |
SftpClientTask.openDirectory(java.lang.String path) |
SftpFile |
SftpClient.openDirectory(java.lang.String path) |
SftpFile |
SftpChannel.openDirectory(java.lang.String path)
Open a directory.
|
SftpFile |
SftpClientTask.openFile(java.lang.String fileName) |
SftpFile |
SftpClient.openFile(java.lang.String fileName) |
SftpFile |
SftpClientTask.openFile(java.lang.String fileName,
int flags) |
SftpFile |
SftpClient.openFile(java.lang.String fileName,
int flags) |
SftpFile |
SftpChannel.openFile(java.lang.String absolutePath,
int flags)
Open a file.
|
SftpFile |
SftpChannel.openFile(java.lang.String absolutePath,
int flags,
com.sshtools.common.sftp.SftpFileAttributes attrs)
Open a file.
|
SftpFile |
SftpChannel.openFileVersion5(java.lang.String absolutePath,
int flags,
int accessFlags,
com.sshtools.common.sftp.SftpFileAttributes attrs) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<SftpFile> |
SftpClient.lsIterator()
Return an iterator for the current working directory.
|
java.util.Iterator<SftpFile> |
SftpClient.lsIterator(java.lang.String path)
Return an iterator for the path provided.
|
java.util.List<SftpFile> |
SftpClientTask.readDirectory(SftpFile dir) |
java.util.List<SftpFile> |
SftpClient.readDirectory(SftpFile dir) |
Modifier and Type | Method and Description |
---|---|
void |
SftpChannel.changePermissions(SftpFile file,
int permissions)
Change the permissions of a file.
|
void |
SftpChannel.closeFile(SftpFile file)
Close a file or directory.
|
boolean |
DirectoryOperation.containsFile(SftpFile f)
Determine whether the directory operation contains an SftpFile
|
void |
SftpClient.copyRemoteData(SftpFile sourceFile,
com.sshtools.common.util.UnsignedInteger64 fromOffset,
com.sshtools.common.util.UnsignedInteger64 length,
SftpFile destinationFile,
com.sshtools.common.util.UnsignedInteger64 toOffset) |
static java.lang.String |
SftpClientTask.formatLongname(SftpFile file)
Format a String with the details of the file.
|
static java.lang.String |
SftpClient.formatLongname(SftpFile file)
Format a String with the details of the file.
|
java.lang.String |
SftpChannel.getAbsolutePath(SftpFile file)
Get the absolute path of a file.
|
com.sshtools.common.sftp.SftpFileAttributes |
SftpChannel.getAttributes(SftpFile file)
Get the attributes of a file.
|
boolean |
SftpClientTask.isDirectoryOrLinkedDirectory(SftpFile file)
Determine whether the file object is pointing to a symbolic link that is
pointing to a directory.
|
boolean |
SftpClient.isDirectoryOrLinkedDirectory(SftpFile file)
Determine whether the file object is pointing to a symbolic link that is
pointing to a directory.
|
int |
SftpChannel.listChildren(SftpFile file,
java.util.List<SftpFile> children)
List the children of a directory.
|
SftpFile[] |
RegularExpressionMatching.matchFilesWithPattern(SftpFile[] files,
java.lang.String fileNameRegExp)
returns each of the SftpFiles that match the pattern fileNameRegExp
|
SftpFile[] |
RegExpMatching.matchFilesWithPattern(SftpFile[] files,
java.lang.String pattern) |
SftpFile[] |
NoRegExpMatching.matchFilesWithPattern(SftpFile[] files,
java.lang.String fileNameRegExp)
returns files
|
SftpFile[] |
GlobRegExpMatching.matchFilesWithPattern(SftpFile[] files,
java.lang.String pattern) |
java.util.List<SftpFile> |
SftpClientTask.readDirectory(SftpFile dir) |
java.util.List<SftpFile> |
SftpClient.readDirectory(SftpFile dir) |
void |
SftpChannel.setAttributes(SftpFile file,
com.sshtools.common.sftp.SftpFileAttributes attrs)
Sets the attributes of a file.
|
Modifier and Type | Method and Description |
---|---|
int |
SftpChannel.listChildren(SftpFile file,
java.util.List<SftpFile> children)
List the children of a directory.
|
Constructor and Description |
---|
SftpFileInputStream(SftpFile file) |
SftpFileInputStream(SftpFile file,
long position)
Creates a new SftpFileInputStream object.
|
SftpFileOutputStream(SftpFile file)
Creates a new SftpFileOutputStream object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Ls.printFile(java.lang.String[] args,
VirtualConsole console,
SftpFile file) |
Copyright © 2023. All rights reserved.