Class UssCopy
- java.lang.Object
-
- zowe.client.sdk.zosfiles.uss.methods.UssCopy
-
public class UssCopy extends Object
Provides Unix System Services (USS) copy functionality- Version:
- 4.0
- Author:
- James Kostrewski
-
-
Constructor Summary
Constructors Constructor Description UssCopy(ZosConnection connection)UssCopy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responsecopy(String fromPath, String targetPath)Copy a Unix file or directory to another locationResponsecopyCommon(String targetPath, UssCopyInputData params)Copy a Unix file or directory to another location request driven by CopyParams object settings
-
-
-
Constructor Detail
-
UssCopy
public UssCopy(ZosConnection connection)
UssCopy Constructor- Parameters:
connection- for connection information, see ZosConnection object
-
-
Method Detail
-
copy
public Response copy(String fromPath, String targetPath) throws ZosmfRequestException
Copy a Unix file or directory to another location- Parameters:
fromPath- the source path of the file or directory to copytargetPath- target path of where the file or directory will be copied too- Returns:
- Response object
- Throws:
ZosmfRequestException- request error state
-
copyCommon
public Response copyCommon(String targetPath, UssCopyInputData params) throws ZosmfRequestException
Copy a Unix file or directory to another location request driven by CopyParams object settings- Parameters:
targetPath- target path of where the file or directory will be copied tooparams- CopyParams parameters that specify copy action request- Returns:
- Response object
- Throws:
ZosmfRequestException- request error state
-
-