public static class PowerShellClient.FsBridge
extends java.lang.Object
Constructor and Description |
---|
PowerShellClient.FsBridge(ShellClient client) |
Modifier and Type | Method and Description |
---|---|
boolean |
copyFile(java.lang.String from,
java.lang.String to)
Copies file from source share to destination share.
|
boolean |
deleteFile(java.lang.String path)
Deletes file.
|
boolean |
sendFileToDestination(java.lang.String localFilePath,
java.lang.String remoteFilePath)
Copies file from local machine to remote destination using remote PSSession.
|
public PowerShellClient.FsBridge(ShellClient client)
public boolean copyFile(java.lang.String from, java.lang.String to) throws java.lang.Exception
from
- - UNC share path representing source file locationto
- - UNC share path representing destination file locationjava.lang.Exception
- - on command timeout or IO operation failurepublic boolean sendFileToDestination(java.lang.String localFilePath, java.lang.String remoteFilePath) throws java.lang.Exception
localFilePath
- - local file path to be copiedremoteFilePath
- - file path on remote destinationjava.lang.Exception
- - on command timeout or IO operation failurepublic boolean deleteFile(java.lang.String path) throws java.lang.Exception
path
- - path representing a file being deleted. Could be local file path or utc-like path(\\address\share\file\path).java.lang.Exception
- - on command timeout or IO operation failureDocumentation Feedback
Copyright 2012 Micro Focus or one of its affiliates.