Class: Asset


This class is used both for the entries in the MongoDB database as well for the queries.

new Asset (filePath)

Name Type Description
filePath string

The file path of the media file.


infoFile_ string

The absolute path of the info file in the YAML format. On the absolute media file path .yml is appended.

multiPartCount Number

The count of parts of a multipart asset.

previewImage string

The absolute path of the preview image.


addFileInfos ()

detectMultiparts_ ()

Search for mutlipart assets. The naming scheme of multipart assets is: filename.jpg, filename_no02.jpg, filename_no03.jpg