mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
19.40.2018 26236cc80a02ad3b29b9c5c966ff8fd888a50a62
Diff functionality...
1 files modified
24 ■■■■■ changed files
borgbutler-core/src/main/java/de/micromata/borgbutler/json/borg/BorgFilesystemItem.java 24 ●●●●● patch | view | raw | blame | history
borgbutler-core/src/main/java/de/micromata/borgbutler/json/borg/BorgFilesystemItem.java
@@ -9,6 +9,11 @@
public class BorgFilesystemItem implements Serializable, Comparable<BorgFilesystemItem> {
    private static final long serialVersionUID = -5545350851640655468L;
    /**
     * If running in diff mode, this flag specifies the type of difference. Null represents unmodified.
     */
    public enum DiffStatus {NEW, REMOVED, MODIFIED}
    /**
     * d (directory), - (file)
     */
@@ -53,6 +58,25 @@
    @Getter
    @Setter
    private int fileNumber;
    /**
     * If created by diff tool, this flag represents the type of difference.
     */
    @Getter
    @Setter
    private DiffStatus diffStatus;
    /**
     * If created by diff tool, this object holds the file item of the other archive (diff archive).
     */
    @Getter
    @Setter
    private BorgFilesystemItem diffItem;
    /**
     * If created by diff tool, this String contains all differences between current and other item for {@link DiffStatus#MODIFIED}.
     * This String may used for displaying.
     */
    @Getter
    @Setter
    private String differences;
    @Override
    public int compareTo(BorgFilesystemItem o) {