Create metadata that's the same but without executable permission. # Returns New metadata with all execute bits cleared.
(self)
| 419 | /// |
| 420 | /// New metadata with all execute bits cleared. |
| 421 | pub fn without_executable(self) -> Self { |
| 422 | Self { |
| 423 | permissions: self.permissions & !0o111, // Clear all execute bits |
| 424 | ..self |
| 425 | } |
| 426 | } |
| 427 | |
| 428 | /// Encode this metadata as a single byte for compact storage. |
| 429 | /// |
no outgoing calls