Skip to main content

ownCloudUser

lib.ownCloudUser

OwncloudUser

OwncloudUser(self, userId, apiKey=None)

This represents an owncloud user. It initialize only one connection to owncloud for one user and holds the current access token.

getFolder

OwncloudUser.getFolder(foldername)

Returns the files within the foldername. If a folder is in there, it returns all files within recursive.

Args: foldername (str): Represents the searched foldername

Returns: list: Represents all files as strings in a list.

getFile

OwncloudUser.getFile(filename)

Returns bytesIO content from specified owncloud filepath. The path does not start with /.