parent
b636f0e6b3
commit
f9d65a419c
@ -0,0 +1,10 @@ |
|||||||
|
use std::fs; |
||||||
|
use std::fs::File; |
||||||
|
use failure::Error; |
||||||
|
|
||||||
|
pub fn copy_from_crate(path: &str) -> Result<(), Error> { |
||||||
|
let crate_readme_path = format!("{}/README.md", path); |
||||||
|
let new_readme_path = format!("{}/pkg/README.md", path); |
||||||
|
fs::copy(&crate_readme_path, &new_readme_path)?; |
||||||
|
Ok(()) |
||||||
|
} |
Loading…
Reference in new issue