in src/main/java/com/fazecast/jSerialComm/SerialPort.java [327:340]
static private void cleanUpDirectory(File path) throws IOException
{
// Clean up all files that are not in a directory named after the current library version
if (path.isDirectory())
{
File[] files = path.listFiles();
if (files != null)
for (File file : files)
if (!file.getName().equals(versionString))
cleanUpDirectory(file.getCanonicalFile());
}
if (!path.getName().equals(versionString) && !path.getName().equals(".."))
path.delete();
}