- All Implemented Interfaces:
- Command
public class Get
extends SftpCommand
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