mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-27 23:18:02 -04:00
Remove files from the file history which are not existing anymore.
This commit is contained in:
parent
363dfab98a
commit
dc8fb35ecd
@ -11,7 +11,7 @@ import java.util.*;
|
||||
import static de.neemann.digital.analyse.expression.Operation.or;
|
||||
|
||||
/**
|
||||
* The algorithm from Quine and McCluskey
|
||||
* The algorithm of Quine and McCluskey
|
||||
*
|
||||
* @author hneemann
|
||||
*/
|
||||
|
@ -34,8 +34,11 @@ public final class FileHistory {
|
||||
files = new ArrayList<File>();
|
||||
for (int i = 0; i < n; i++) {
|
||||
String pathname = PREFS.get(FILE_NAME + i, null);
|
||||
if (pathname != null && pathname.length() > 0)
|
||||
files.add(new File(pathname));
|
||||
if (pathname != null && pathname.length() > 0) {
|
||||
final File file = new File(pathname);
|
||||
if (file.exists())
|
||||
files.add(file);
|
||||
}
|
||||
}
|
||||
if (n != files.size())
|
||||
saveEntries();
|
||||
|
Loading…
x
Reference in New Issue
Block a user