| ... | ... | @@ -1814,6 +1814,20 @@ pub const Tree = struct { |
| 1814 | 1814 | b[5] = @as(u8, @as(u3, @bitCast(self.perm_other))) + '0'; |
| 1815 | 1815 | return b; |
| 1816 | 1816 | } |
| 1817 | |
| 1818 | pub fn octal(self: Mode) u9 { |
| 1819 | const O = packed struct { |
| 1820 | other: Perm, |
| 1821 | group: Perm, |
| 1822 | user: Perm, |
| 1823 | }; |
| 1824 | const o: O = .{ |
| 1825 | .other = self.perm_other, |
| 1826 | .group = self.perm_group, |
| 1827 | .user = self.perm_user, |
| 1828 | }; |
| 1829 | return @bitCast(o); |
| 1830 | } |
| 1817 | 1831 | }; |
| 1818 | 1832 | |
| 1819 | 1833 | pub const Type = enum(u8) { |