Description Usage Arguments Details Value Slots Author(s) See Also
Constructor for File
1 |
path |
Path to the file in local file system, or URL to file on the internet |
parentId |
The Synapse ID of the parent Project or Folder in which to store the File (e.g. "syn101") |
synapseStore |
If 'synapseStore' is TRUE then the file specified by |
... |
Additional named parameters are interpreted as properties or annotations on the File |
If the parent Project has an associated data store, credentials to access the store should be placed in your '.synapseConfig' file: The .synapseConfig file goes in your home directory and is in the ".ini" format. Create a new section in the file for the server to be accessed. The section title is the protocol and host. Below, put lines for username and password, e.g.:
[sftp://remote.host.com]
username=myUserName
password=secret
The created File is returned. NOTE: This is an in-memory representation. To persist to Synapse use synStore().
filePathlocal path to the file, if downloaded from Synapse
synapseStoreflag to tell synStore whether to store the file or just the loacation of the file, along with any metadata
fileHandleSynapse fileHandle associated with the stored file
objectsR objects stored in this File, if previously added by addObject
attachOwninternally used information to handle file caching
annotationsannotations set on the object
synapseEntityKindin this case, 'File'
synapseWebUrlSynapse web URL
generatedBythe Activity which generated this File, if applicable (see Activity)
propertiesSynapse properties for a File. Properties of interest include:
unique Synapse ID as set by the system upon synStore (not set by user)
Version of this File
user supplied name, usually the File name
user supplied description
Bruce Hoff
Folder
Project
synGet
synStore
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.