Acquire.Storage._userdrives module

class UserDrives(authorisation=None, user_guid=None)[source]

Bases: object

This class holds all of the information about all of the drives that a specific user can access. This holds the relationships between those user drives, e.g. drives can be nested in other drives.

get_drive(name, autocreate=True)[source]

Return the DriveMeta for the Drive that the user has called ‘name’. If ‘autocreate’ is True then this drive is automatically created if it does not exist. Note that the ‘/’ in the name will be interpreted as drive separators.

is_null()[source]

Return whether or not this is null

list_drives(drive_uid=None)[source]

Return a list of all of the top-level drives to which this user has access, or all of the sub-drives of the drive with passed ‘drive_uid’