@Throws(Exception::class) fun testFileDeletion() { val testDir: File = createTestDir("testFileDeletion") val prefix1 = "testFileDeletion1" val files1: Array<File> = createFiles(testDir, prefix1, 5) val prefix2 = "testFileDeletion2" val files2: Array<File> = createFiles(testDir, prefix2, 5) FileCommands.deleteFiles(files1, true) assertNotExists(files1) FileCommands.deleteFiles(files2, false) Thread.sleep(1000) assertNotExists(files2) }
Verify ability to delete a list of files .