Class Get
java.lang.Object
com.sshtools.server.vsession.AbstractCommand
com.sshtools.server.vsession.commands.sftp.SftpCommand
com.sshtools.server.vsession.commands.sftp.Get
- All Implemented Interfaces:
Command
get [-afPpr] remote-path [local-path] Retrieve the remote-path and store it
on the local machine. If the local path name is not specified, it is given
the same name it has on the remote machine. remote-path may contain glob(7)
characters and may match multiple files. If it does and local-path is
specified, then local-path must specify a direc‐ tory.
If the -a flag is specified, then attempt to resume partial transfers of
existing files. Note that resumption assumes that any partial copy of the
local file matches the remote copy. If the remote file contents differ from
the partial local copy then the resultant file is likely to be corrupt.
If the -f flag is specified, then fsync(2) will be called after the file
transfer has completed to flush the file to disk.
If either the -P or -p flag is specified, then full file permis‐ sions and
access times are copied too.
If the -r flag is specified then directories will be copied recursively. Note
that sftp does not follow symbolic links when performing recursive transfers.
- Author:
- user
-
Field Summary
Fields inherited from class com.sshtools.server.vsession.commands.sftp.SftpCommand
sftp
Fields inherited from class com.sshtools.server.vsession.AbstractCommand
exitCode
Fields inherited from interface com.sshtools.server.vsession.Command
STILL_ACTIVE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sshtools.server.vsession.commands.sftp.SftpCommand
setSftpClient
Methods inherited from class com.sshtools.server.vsession.AbstractCommand
complete, getCommandName, getDescription, getExitCode, getName, getSubsystem, getUsage, isBuiltIn, isHidden, setBuiltIn, setDescription, setName, setSignature, setSubsystem
-
Constructor Details
-
Get
public Get()
-
-
Method Details
-
run
public void run(String[] args, VirtualConsole console) throws IOException, com.sshtools.common.permissions.PermissionDeniedException, UsageException - Throws:
IOException
com.sshtools.common.permissions.PermissionDeniedException
UsageException
-