final String versionPrefix = Home.CURRENT_VERSION + "-";
final File sessionTemporaryFolder = new File(temporaryFolder,
versionPrefix + TEMPORARY_SESSION_SUB_FOLDER);
if (!sessionTemporaryFolder.exists()) {
// Retrieve existing folders working with same Sweet Home 3D version in temporary folder
final File [] siblingTemporaryFolders = temporaryFolder.listFiles(new FileFilter() {
public boolean accept(File file) {
return file.isDirectory()
&& file.getName().startsWith(versionPrefix);
}
});