| ... | @@ -320,9 +320,17 @@ pub const Tree = struct { | ... | @@ -320,9 +320,17 @@ pub const Tree = struct { |
| 320 | try self.perm_group.nprint(writer); | 320 | try self.perm_group.nprint(writer); |
| 321 | try self.perm_other.nprint(writer); | 321 | try self.perm_other.nprint(writer); |
| 322 | } | 322 | } |
| | 323 | |
| | 324 | pub fn eql(self: Mode, other: Mode) bool { |
| | 325 | if (self.type != other.type) return false; |
| | 326 | if (self.perm_user != other.perm_user) return false; |
| | 327 | if (self.perm_group != other.perm_group) return false; |
| | 328 | if (self.perm_other != other.perm_other) return false; |
| | 329 | return true; |
| | 330 | } |
| 323 | }; | 331 | }; |
| 324 | | 332 | |
| 325 | pub const Type = enum(u16) { | 333 | pub const Type = enum(u8) { |
| 326 | file = 100, | 334 | file = 100, |
| 327 | directory = 40, | 335 | directory = 40, |
| 328 | submodule = 160, | 336 | submodule = 160, |