| | |
| | | |
| | | 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) |
| | | */ |
| | |
| | | @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) { |