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

Method regular_file

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

Create metadata for a regular file with default permissions (0o644). # Example ```rust use atomic_core::record::FileMetadata; let meta = FileMetadata::regular_file(); assert!(!meta.is_dir()); assert!(!meta.is_executable()); ```

()

Source from the content-addressed store, hash-verified

338 /// assert!(!meta.is_executable());
339 /// ```
340 pub fn regular_file() -> Self {
341 Self::new(0o644, false)
342 }
343
344 /// Create metadata for an executable file (0o755).
345 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected