Class UssMove


  • public class UssMove
    extends Object
    Provides Unix System Services (USS) move functionality

    z/OSMF REST API

    Version:
    4.0
    Author:
    James Kostrewski
    • 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 move
        targetPath - 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 move
        targetPath - the target path of where the file or directory will be moved too
        overwrite - 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