import com.kazurayam.materials.Helpers
import com.kazurayam.materials.MaterialRepository
import com.kazurayam.visualtesting.ManagedGlobalVariable as MGV

import internal.GlobalVariable as GlobalVariable

/**
 * Test Cases/VT/cleanMaterials
 * 
 * delete the contents of the ./Materials directory
 */
MaterialRepository mr = (MaterialRepository)GlobalVariable[MGV.MATERIAL_REPOSITORY.getName()]
assert mr != null

Helpers.deleteDirectoryContents(mr.getBaseDir())

mr.scan()