Skip to content

Sharing a directory #218

Open
Open
@steve500002

Description

@steve500002

When attempting to share a directory:
share_link = oc.share_file_with_link(directory)

I get
'id': data_el.find('id').text,
AttributeError: 'NoneType' object has no attribute 'text'

I know that the function explicitly talks about files, but documentation says I can share directories and there is not a share_directory_with_link function so I am working on basis that this function should work.

Error refers to line 833 - data=post_data

and post data is created on 818
post_data = {
'shareType': self.OCS_SHARE_TYPE_LINK,
'path': self._encode_string(path),
}

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions