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

Method put_file_state

atomic-core/src/operation/codec.rs:834–843  ·  view source on GitHub ↗
(&mut self, state: &FileState)

Source from the content-addressed store, hash-verified

832 }
833
834 fn put_file_state(&mut self, state: &FileState) -> Result<(), OperationCodecError> {
835 self.put_u8(match state.kind {
836 FileKind::Regular => 0,
837 FileKind::Directory => 1,
838 FileKind::Symlink => 2,
839 FileKind::Gitlink => 3,
840 })?;
841 self.put_u32(state.mode)?;
842 self.put_hash(state.content)
843 }
844
845 fn put_receipt_kind(&mut self, kind: EffectReceiptKind) -> Result<(), OperationCodecError> {
846 self.put_u8(match kind {

Callers 1

put_effect_valueMethod · 0.80

Calls 3

put_u8Method · 0.80
put_u32Method · 0.80
put_hashMethod · 0.80

Tested by

no test coverage detected