PCFOPSAPIParams

Version 1.5 - Updated on 10/20/2016

Superclass: PCResourceAPIParams
Declared In: PCFOPSAPIParams.h

Contents

Introduction

This class stores base parameters for all file and folder operations such as copy, rename, and move.

Properties

conflictsolve

@property (nonatomic,
    copy) NSString *conflictsolve; 
  • Discussion
    Defines how name conflicts are resolved, if the safe parameter is set to true. If set to copy, a new file is written to the destination folder with a non-conflicting name. If not set, the operation is rolled back and returns 409 Conflict.

overrideRule

@property (nonatomic,
    copy) NSString *overrideRule; 
  • Discussion
    Specifies what happens if a folder of the same name exists at the target path:

    • Set to overwrite, to overwrite the existing folder.
    • Set to modify, to treat the new folder as a modification of the old folder.

    If the override parameter is not set, the following algorithm is applied:

    • If the existing folder has a deleted attribute set to true, the folder is overwritten.
    • If the old folder’s deleted attribute is false or not set, the folder is modified.

safe

@property (nonatomic,
    copy) NSString *safe; 
  • Discussion
    If set to true, ensures that name conflicts are resolved according to the value of the conflictsolve parameter. Defaults to false, in which case the operation overwrites an existing file or folder of the same name.

source

@property (nonatomic,
    copy) NSString *source; 
  • Discussion
    Full path of the file or folder for copy, move, and rename operations. Required.

target

@property (nonatomic,
    copy) NSString *target; 
  • Discussion
    Full path of the target file or folder for copy, move, and rename operations. In case of files the full changed name should be included in the target. Required.

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.