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

Method directory

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

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

()

Source from the content-addressed store, hash-verified

367 /// assert!(meta.is_dir());
368 /// ```
369 pub fn directory() -> Self {
370 Self::new(0o755, true)
371 }
372
373 /// Get the permission bits.
374 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected