public class SFTPClient extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected SFTPEngine |
engine |
protected org.slf4j.Logger |
log
Logger
|
protected SFTPFileTransfer |
xfer |
Constructor and Description |
---|
SFTPClient(SFTPEngine engine) |
protected final org.slf4j.Logger log
protected final SFTPEngine engine
protected final SFTPFileTransfer xfer
public SFTPClient(SFTPEngine engine)
public SFTPEngine getSFTPEngine()
public SFTPFileTransfer getFileTransfer()
public List<RemoteResourceInfo> ls(String path) throws IOException
IOException
public List<RemoteResourceInfo> ls(String path, RemoteResourceFilter filter) throws IOException
IOException
public RemoteFile open(String filename, Set<OpenMode> mode, FileAttributes attrs) throws IOException
IOException
public RemoteFile open(String filename, Set<OpenMode> mode) throws IOException
IOException
public RemoteFile open(String filename) throws IOException
IOException
public void mkdir(String dirname) throws IOException
IOException
public void mkdirs(String path) throws IOException
IOException
public FileAttributes statExistence(String path) throws IOException
IOException
public void rename(String oldpath, String newpath) throws IOException
IOException
public void rm(String filename) throws IOException
IOException
public void rmdir(String dirname) throws IOException
IOException
public void symlink(String linkpath, String targetpath) throws IOException
IOException
public int version()
public void setattr(String path, FileAttributes attrs) throws IOException
IOException
public int uid(String path) throws IOException
IOException
public int gid(String path) throws IOException
IOException
public long atime(String path) throws IOException
IOException
public long mtime(String path) throws IOException
IOException
public Set<FilePermission> perms(String path) throws IOException
IOException
public FileMode mode(String path) throws IOException
IOException
public FileMode.Type type(String path) throws IOException
IOException
public String readlink(String path) throws IOException
IOException
public FileAttributes stat(String path) throws IOException
IOException
public FileAttributes lstat(String path) throws IOException
IOException
public void chown(String path, int uid) throws IOException
IOException
public void chmod(String path, int perms) throws IOException
IOException
public void chgrp(String path, int gid) throws IOException
IOException
public void truncate(String path, long size) throws IOException
IOException
public String canonicalize(String path) throws IOException
IOException
public long size(String path) throws IOException
IOException
public void get(String source, String dest) throws IOException
IOException
public void put(String source, String dest) throws IOException
IOException
public void get(String source, LocalDestFile dest) throws IOException
IOException
public void put(LocalSourceFile source, String dest) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2009-2013. All Rights Reserved.