Method “importFilesPlain”

function importFilesPlain(files[, target])

Imports the given files into the library.

This function takes an exact list of files and an optional target node. Note that associated files, such as XMP sidecars or RAW/JPEG pairs will not be detected by this function and need to be handled manually. Also, if anything other than media files is imported, target must either be an event or a shoe box folder node.

Parameters

NameTypeDescription
filesarray of stringsList of paths or URLs pointing to the files to import
targetobject (optional)Optional target node of type Event, ShoeBox or ShoeBoxFolder

Return Value

Returns an array with the same length as files, containing either a FileNode object matching the corresponding entry in files, or null if the file could not be imported.

Errors

Will throw an error if the import couldn't be completed successfully.