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
|
addCapabilities, createFile, doCloseCommunicationLink, getChannel, getGroupsIds, getLastModTimeAccuracy, getUId, putChannel
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, 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
Copyright © 2017 Hitachi Vantara. All rights reserved.