createFolder method

void createFolder(
  1. String name, {
  2. String? typeId,
  3. String? parentId,
  4. String? parentPath,
  5. Map<String, String>? customProperties,
})

Create folder. Will take a supplied type id, defaults to folder.

Implementation

void createFolder(String name,
    {String? typeId,
    String? parentId,
    String? parentPath,
    Map<String, String>? customProperties}) {
  if (repositoryId == null) {
    throw CmisException('createFolder() expects a non null repository Id');
  }

  var intTypeId = typeId;
  if (typeId == null) {
    intTypeId = 'cmis:folder';
  }
  create(name, 'createFolder',
      typeId: intTypeId,
      parentId: parentId,
      parentPath: parentPath,
      customProperties: customProperties);
}