repaired windows crash
This commit is contained in:
parent
4b4d42cda6
commit
c1bd31aec5
@ -20,6 +20,6 @@ databreaker_version=0.2.10
|
||||
pgzip_commit_hash=af5f5c297e735f3f2df7aa4eb0e19a5810b8aff6
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 3.0.0
|
||||
mod_version = 3.0.1
|
||||
maven_group = net.szum123321
|
||||
archives_base_name = textile_backup
|
@ -28,7 +28,7 @@ import java.time.format.DateTimeFormatter;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
public record CompressionStatus(long treeHash, Map<Path, Exception> brokenFiles, LocalDateTime date, long startTimestamp, long finishTimestamp, String version) implements Serializable {
|
||||
public record CompressionStatus(long treeHash, Map<String, Exception> brokenFiles, LocalDateTime date, long startTimestamp, long finishTimestamp, String version) implements Serializable {
|
||||
public static final String DATA_FILENAME = "textile_status.data";
|
||||
|
||||
public Optional<String> validate(long hash, RestoreContext ctx) throws RuntimeException {
|
||||
@ -80,8 +80,8 @@ public record CompressionStatus(long treeHash, Map<Path, Exception> brokenFiles,
|
||||
if(brokenFiles.isEmpty()) builder.append("[]");
|
||||
else {
|
||||
builder.append("[\n");
|
||||
for(Path i: brokenFiles.keySet()) {
|
||||
builder.append(i.toString())
|
||||
for(String i: brokenFiles.keySet()) {
|
||||
builder.append(i)
|
||||
.append(":");
|
||||
|
||||
ByteArrayOutputStream o = new ByteArrayOutputStream();
|
||||
|
@ -23,12 +23,12 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class BrokenFileHandler {
|
||||
private final Map<Path, Exception> store = new HashMap<>();
|
||||
public void handle(Path file, Exception e) { store.put(file, e); }
|
||||
private final Map<String, Exception> store = new HashMap<>();
|
||||
public void handle(Path file, Exception e) { store.put(file.toString(), e); }
|
||||
|
||||
public boolean valid() { return store.isEmpty(); }
|
||||
|
||||
public Map<Path, Exception> get() {
|
||||
public Map<String, Exception> get() {
|
||||
return store;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user