public class SftpFileSystemWindows
extends org.apache.commons.vfs2.provider.sftp.SftpFileSystem
Constructor and Description |
---|
SftpFileSystemWindows(org.apache.commons.vfs2.provider.GenericFileName rootName,
com.jcraft.jsch.Session session,
org.apache.commons.vfs2.FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getFilePermission(String path) |
String |
getUser()
Get current user on remote host
|
List<String> |
getUserGroups()
get user group on remote windows host
|
boolean |
isRemoteHostWindows()
check is remote host is windows
|
getGroupsIds, getLastModTimeAccuracy, getUId
addJunction, addListener, close, closeCommunicationLink, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
public SftpFileSystemWindows(org.apache.commons.vfs2.provider.GenericFileName rootName, com.jcraft.jsch.Session session, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
public List<String> getUserGroups() throws com.jcraft.jsch.JSchException, IOException
com.jcraft.jsch.JSchException
IOException
public String getUser() throws com.jcraft.jsch.JSchException, IOException
com.jcraft.jsch.JSchException
IOException
public Map<String,String> getFilePermission(String path) throws com.jcraft.jsch.JSchException, IOException
path
- path to file or directorycom.jcraft.jsch.JSchException
IOException
public boolean isRemoteHostWindows() throws com.jcraft.jsch.JSchException, IOException
com.jcraft.jsch.JSchException
IOException