MediaHelper

A helper for Media objects

getRootPath

Gets the media root path

Parameters

Returns

Promise
Path

getTree

Gets the Media tree

Parameters

Returns

Promise(Object)
tree

setTreeItem

Sets a Media tree item

Parameters

id
String
item
Object

Returns

Promise
promise

getTempPath

Gets the media temp path

Parameters

project
String

Returns

String
Path