Class UssMove
- java.lang.Object
-
- zowe.client.sdk.zosfiles.uss.methods.UssMove
-
public class UssMove extends Object
Provides Unix System Services (USS) move functionality- Version:
- 2.0
- Author:
- James Kostrewski
-
-
Constructor Summary
Constructors Constructor Description UssMove(ZosConnection connection)UssMove ConstructorUssMove(ZosConnection connection, ZoweRequest request)Alternative UssMove constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responsemove(String fromPath, String targetPath)Move a UNIX file or directory with overwrite set as trueResponsemove(String fromPath, String targetPath, boolean overwrite)Move a UNIX file or directory with overwrite value specified
-
-
-
Constructor Detail
-
UssMove
public UssMove(ZosConnection connection)
UssMove Constructor- Parameters:
connection- connection information, see ZosConnection object
-
UssMove
public UssMove(ZosConnection connection, ZoweRequest request) throws Exception
Alternative UssMove constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.- Parameters:
connection- connection information, see ZosConnection objectrequest- any compatible ZoweRequest Interface object- Throws:
Exception- processing error
-
-
Method Detail
-
move
public Response move(String fromPath, String targetPath) throws Exception
Move a UNIX file or directory with overwrite set as true- Parameters:
fromPath- the source path of the file or directory to movetargetPath- the target path of where the file or directory will be moved too- Returns:
- Response object
- Throws:
Exception- processing error
-
move
public Response move(String fromPath, String targetPath, boolean overwrite) throws Exception
Move a UNIX file or directory with overwrite value specified- Parameters:
fromPath- the source path of the file or directory to movetargetPath- the target path of where the file or directory will be moved toooverwrite- true if you want to override existing data at target path or false to not override- Returns:
- Response object
- Throws:
Exception- processing error
-
-