addFolder

format

static void addFolder(String path, int fileType, boolean recurse) throws Exception

description

Adds a folder of images, and optionally its subfolders, to the current MediaCollection as MediaObjects.

parameters

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

 

fileType - must be one of EDF_ONLY, IMAGE_ONLY, or IMAGE_AND_EDF

 

recurse - set to TRUE to recursively add all subfolders

returns

nothing (void)

throws

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