walk | R Documentation |
Traverse the hierarchy of files and folders stored under the synId. Has the same behavior as os.walk()
walk(synId)
synId |
A synapse ID of a folder or project |
includeTypes |
Must be a list of entity types (ie.c("file", "table") The "folder" type is always included so the hierarchy can be traversed. Defaults to c("folder", "file", "table", "link", "entityview", "dockerrepo", "submissionview", "dataset", "materializedview") |
## Not run:
# default entity types
walkedPath <- walk("syn1234")
walkedPath$asList()
# or
as.list(walkedPath)
# Exclude tables and views
walkedPath <- walk(synId="syn1234", includeTypes=c("file"))
walkedPath$asList()
# or
as.list(walkedPath)
# Exclude files
walkedPath <- walk(synId="syn1234", includeTypes=c("table"))
walkedPath$asList()
# or
as.list(walkedPath)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.