ItemDriver Class
An item utility interacts with the item storage and is responsible for creating and deleting items. This is an implementation of item utility using Dropbox as the item storage.
For ItemMirror core developers only. Enable protected to see.
Constructor
Item Index
Methods
checkExisted
(
protected
-
path
-
name
-
callback(result)
Check if the item is existed
copyItem
(
protected
-
fromPath
-
toPath
-
callback
Copies an item in the fashion of moveItem
createGroupingItem
(
protected
-
path
-
callback
Creates a grouping item at the location
createNonGroupingItem
(
protected
-
path
-
file
-
callback
Creates or uploads a non-grouping item at the location
deleteGroupingItem
(
protected
-
path
-
callback
Deletes a grouping item at the location
deleteNonGroupingItem
(
protected
-
path
-
name
-
callback
Deletes a non-grouping item at the location
getURL
(
protected
-
path
-
callback
Get publicly readable download url for a non-grouping item from Dropbox website.
listItems
(
protected
-
path
-
callback(output)
Lists the items under the grouping item