def figshare_root_folder(node_settings, auth, **kwargs):
 if ((not node_settings.has_auth) or (not node_settings.folder_id)):
  return None
 node = node_settings.owner
 return [rubeus.build_addon_root(node_settings=node_settings, name=node_settings.fetch_folder_name(), permissions=auth, nodeUrl=node.url, nodeApiUrl=node.api_url, rootFolderType=node_settings.folder_path, private_key=kwargs.get('view_only', None))]

def figshare_root_folder ( node_settings , auth , ** kwargs ) : if ( ( not node_settings . has_auth ) or ( not node_settings . folder_id ) ) : return None node = node_settings . owner return [ rubeus . build_addon_root ( node_settings = node_settings , name = node_settings . fetch_folder_name ( ) , permissions = auth , nodeUrl = node . url , nodeApiUrl = node . api_url , rootFolderType = node_settings . folder_path , private_key = kwargs . get ( 'view_only' , None ) ) ]
return the rubeus/hgrid-formatted response for the root folder only .