DBFILESCreateFolderBatchArg

Objective-C

@interface DBFILESCreateFolderBatchArg : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESCreateFolderBatchArg : NSObject, DBSerializable, NSCopying

The CreateFolderBatchArg struct.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

  • List of paths to be created in the user’s Dropbox. Duplicate path arguments in the batch are considered only once.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<NSString *> *_Nonnull paths;

    Swift

    var paths: [String] { get }
  • If there’s a conflict, have the Dropbox server try to autorename the folder to avoid the conflict.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSNumber *_Nonnull autorename;

    Swift

    var autorename: NSNumber { get }
  • Whether to force the create to happen asynchronously.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSNumber *_Nonnull forceAsync;

    Swift

    var forceAsync: NSNumber { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPaths:(nonnull NSArray<NSString *> *)paths
                               autorename:(nullable NSNumber *)autorename
                               forceAsync:(nullable NSNumber *)forceAsync;

    Swift

    init(paths: [String], autorename: NSNumber?, forceAsync: NSNumber?)

    Parameters

    paths

    List of paths to be created in the user’s Dropbox. Duplicate path arguments in the batch are considered only once.

    autorename

    If there’s a conflict, have the Dropbox server try to autorename the folder to avoid the conflict.

    forceAsync

    Whether to force the create to happen asynchronously.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPaths:(nonnull NSArray<NSString *> *)paths;

    Swift

    init(paths: [String])

    Parameters

    paths

    List of paths to be created in the user’s Dropbox. Duplicate path arguments in the batch are considered only once.

    Return Value

    An initialized instance.