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

Method with_executable

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

Create metadata that's the same but with executable permission. # Returns New metadata with the owner execute bit set.

(self)

Source from the content-addressed store, hash-verified

407 ///
408 /// New metadata with the owner execute bit set.
409 pub fn with_executable(self) -> Self {
410 Self {
411 permissions: self.permissions | 0o100, // Set owner execute
412 ..self
413 }
414 }
415
416 /// Create metadata that's the same but without executable permission.
417 ///

Callers 1

Calls

no outgoing calls

Tested by 1