Add Folder (MediaCollection)

format

public void addFolder(String path, MediaCollection mCollection) throws Exception

description

Adds a folder of images to the MediaCollection you specify. Use this method if you want to add a folder of images to a MediaCollection other than the current MediaCollection. Before adding the images from the folder to the MediaCollection, this method converts them to MediaObjects (EDF files).

parameters

path - the full path of the folder to be added (for example, c:\images\sunsets)

 

mCollection - the MediaCollection to which you want to add the folder of images

returns

nothing (void)

throws

addFolder() throws an Exception if the addition fails, if path does not exist or is not a folder, or if the mCollection does not exist or is not a MediaCollection.