MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / without_executable

Method without_executable

atomic-core/src/record/item.rs:421–426  ·  view source on GitHub ↗

Create metadata that's the same but without executable permission. # Returns New metadata with all execute bits cleared.

(self)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

Calls

no outgoing calls

Tested by 1