mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-28 15:32:40 -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;
|
import static de.neemann.digital.analyse.expression.Operation.or;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The algorithm from Quine and McCluskey
|
* The algorithm of Quine and McCluskey
|
||||||
*
|
*
|
||||||
* @author hneemann
|
* @author hneemann
|
||||||
*/
|
*/
|
||||||
|
@ -34,8 +34,11 @@ public final class FileHistory {
|
|||||||
files = new ArrayList<File>();
|
files = new ArrayList<File>();
|
||||||
for (int i = 0; i < n; i++) {
|
for (int i = 0; i < n; i++) {
|
||||||
String pathname = PREFS.get(FILE_NAME + i, null);
|
String pathname = PREFS.get(FILE_NAME + i, null);
|
||||||
if (pathname != null && pathname.length() > 0)
|
if (pathname != null && pathname.length() > 0) {
|
||||||
files.add(new File(pathname));
|
final File file = new File(pathname);
|
||||||
|
if (file.exists())
|
||||||
|
files.add(file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (n != files.size())
|
if (n != files.size())
|
||||||
saveEntries();
|
saveEntries();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user