Skip to content

Conversation

@cjblocker
Copy link

@cjblocker cjblocker commented Apr 6, 2019

Fixes #4
folders exist as a property of the root Mendeley session and on any group object.

I haven't written any docs or tests yet (besides my own tests while developing), but would be happy to add some if interested in merging.

Example Usage:

fold = mendeley_session.folders.list().items[0]
testfold = mendeley_session.folders.create('0000Test Folder0000') #creates a root folder
test_subfold = testfold.create('000Test Subfolder000') # creates a subfolder fo testfold
assert test_subfold.parent == testfold

doc = fold.documents.list(view='all')[0]
test_subfold.add_document(doc)
test_subfold.remove_document(doc)

print("Subfolder name: {}".format(test_subfold.name))
print("Parent folder name:{}".format(test_subfold.parent.name))

@cjblocker cjblocker changed the title Add support for folders, resolves #4 Add support for folders Apr 6, 2019
@may1066
Copy link

may1066 commented Jan 22, 2020

This would be really useful, is it likely to be updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include folders methods

2 participants