The fileOptions used to create a new file object, or just the id of the file object
The owning EntityManager where this factory belongs to
Lists all the buckets.
The listed buckets.
Optional
doneCallback: anyThe callback is invoked with the listed buckets
Optional
failCallback: anyThe callback is invoked if any error has occurred
Lists the files (and folders) in the given folder.
The listed files/folders.
The folder/path to list.
The file/folder from where to start listing (not included)
The maximum number of files to return.
Optional
doneCallback: anyThe callback is invoked with the listed files
Optional
failCallback: anyThe callback is invoked if any error has occurred
Gets the metadata of the root folder (formally the file "bucket")
A promise which will be fulfilled with the bucket ACLs
The name of the root file directory
Optional
options: { The load metadata options
Optional
refresh?: booleanForce a revalidation while fetching the metadata
Optional
doneCallback: anyThe callback is invoked after the metadata is fetched
Optional
failCallback: anyThe callback is invoked if any error has occurred
Creates a new file
A new created file
Constructor arguments used for instantiation, the constructor will not be called when no arguments are passed
Updates the metadata of the root file directory formally the file "bucket"
A promise which will fulfilled with the updated metadata
The name of the root file directory
The new metadata for the bucket
Optional
doneCallback: anyInvoked if the operation succeeds
Optional
failCallback: anyThe callback is invoked if any error has occurred
Static
createCreates a new FileFactory for the given type
A new file factory
Static
Protected
createCreates a new Factory for the given type
A new object factory to created instances of T
Generated using TypeDoc
Creates a new file object which represents the file at the given ID
Data provided to the constructor will be uploaded by invoking upload().
Returns
A new file instance