| ... | ... | @@ -320,9 +320,17 @@ pub const Tree = struct { |
| 320 | 320 | try self.perm_group.nprint(writer); |
| 321 | 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 | 334 | file = 100, |
| 327 | 335 | directory = 40, |
| 328 | 336 | submodule = 160, |