synGetChildren.Rd
Retrieves all of the entities stored within a parent such as folder or project.
synGetChildren(parent, includeTypes=list("folder", "file", "table", "link", "entityview", "dockerrepo"), sortBy = 'NAME', sortDirection = 'ASC')
An id or an object of a Synapse container or NULL to retrieve all projects
Must be a list of entity types (ie. list("folder","file") which can be found here:
http://docs.synapse.org/rest/org/sagebionetworks/repo/model/EntityType.html
How results should be sorted. Can be 'NAME', or 'CREATED_ON'.
The direction of the result sort. Can be 'ASC', or 'DESC'
An iterator that shows all the children of the container. Use nextElem
or as.list
to access the values.
if (FALSE) {
iterator <- synGetChildren("syn123456", includeTypes = list("file"), sortBy = "CREATED_ON")
}