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

Method executable

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

Create metadata for an executable file (0o755). # Example ```rust use atomic_core::record::FileMetadata; let meta = FileMetadata::executable(); assert!(meta.is_executable()); assert!(!meta.is_dir()); ```

()

Source from the content-addressed store, hash-verified

353 /// assert!(!meta.is_dir());
354 /// ```
355 pub fn executable() -> Self {
356 Self::new(0o755, false)
357 }
358
359 /// Create metadata for a directory (0o755).
360 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected