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:
- 4.0
- Author:
- James Kostrewski
-
-
Constructor Summary
Constructors Constructor Description UssMove(ZosConnection connection)UssMove Constructor
-
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- for connection information, see ZosConnection object
-
-
Method Detail
-
move
public Response move(String fromPath, String targetPath) throws ZosmfRequestException
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:
ZosmfRequestException- request error state
-
move
public Response move(String fromPath, String targetPath, boolean overwrite) throws ZosmfRequestException
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 a target path or false to not override- Returns:
- Response object
- Throws:
ZosmfRequestException- request error state
-
-