MCPcopy Create free account
hub / github.com/assert-rs/assert_fs / copy_from

Method copy_from

src/fixture/tools.rs:190–196  ·  view source on GitHub ↗
(&self, source: P, patterns: &[S])

Source from the content-addressed store, hash-verified

188
189impl PathCopy for TempDir {
190 fn copy_from<P, S>(&self, source: P, patterns: &[S]) -> Result<(), FixtureError>
191 where
192 P: AsRef<path::Path>,
193 S: AsRef<str>,
194 {
195 copy_files(self.path(), source.as_ref(), patterns)
196 }
197}
198
199impl PathCopy for ChildPath {

Callers

nothing calls this directly

Calls 3

copy_filesFunction · 0.85
pathMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected