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

Method is_executable

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

Check if this file is executable. A file is considered executable if any of the execute bits (owner, group, or other) are set. # Returns `true` if any execute bit is set.

(&self)

Source from the content-addressed store, hash-verified

397 ///
398 /// `true` if any execute bit is set.
399 pub fn is_executable(&self) -> bool {
400 // Execute bits are at positions 0, 3, 6 (other, group, owner)
401 (self.permissions & 0o111) != 0
402 }
403
404 /// Create metadata that's the same but with executable permission.
405 ///

Callers 1

to_byteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected