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:
- 2.0
- Author:
- James Kostrewski
-
-
Constructor Summary
Constructors Constructor Description UssCopy(ZosConnection connection)UssCopy ConstructorUssCopy(ZosConnection connection, ZosmfRequest request)Alternative UssCopy constructor with ZoweRequest object.
-
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, CopyParams 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- connection information, see ZosConnection object
-
UssCopy
public UssCopy(ZosConnection connection, ZosmfRequest request)
Alternative UssCopy 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
-
-
Method Detail
-
copy
public Response copy(String fromPath, String targetPath)
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
-
copyCommon
public Response copyCommon(String targetPath, CopyParams params)
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 specifies copy action request- Returns:
- Response object
-
-