pub(crate) fn write_example_move_packages(project_path: &Path) -> Result<()> {
    println!("Copying Examples...");
    for entry in EXAMPLES_DIR.find("**/*").unwrap() {
        match entry {
            include_dir::DirEntry::Dir(d) => {
                fs::create_dir_all(project_path.join(d.path()))?;
            }
            include_dir::DirEntry::File(f) => {
                let dst = project_path.join(f.path());
                fs::write(dst.as_path(), f.contents())?;
            }
        }
    }
    Ok(())
}
// Writes the move packages for a new project
Writes the move packages for a new project
Writes the move packages for a new project
pub(crate) fn write_example_move_packages(project_path: &Path) -> Result<()> {
    println!("Copying Examples...");
    for entry in EXAMPLES_DIR.find("**/*").unwrap() {
        match entry {
            include_dir::DirEntry::Dir(d) => {
                fs::create_dir_all(project_path.join(d.path()))?;
            }
            include_dir::DirEntry::File(f) => {
                let dst = project_path.join(f.path());
                fs::write(dst.as_path(), f.contents())?;
            }
        }
    }
    Ok(())
}
pub ( crate ) fn write_example_move_packages ( project_path : & Path ) -> Result < ( ) > { println ! ( " " ) ; for entry in EXAMPLES_DIR . find ( " " ) . unwrap ( ) { match entry { include_dir :: DirEntry :: Dir ( d ) => { fs :: create_dir_all ( project_path . join ( d . path ( ) ) ) ? ; } include_dir :: DirEntry :: File ( f ) => { let dst = project_path . join ( f . path ( ) ) ; fs :: write ( dst . as_path ( ) , f . contents ( ) ) ? ; } } } Ok ( ( ) ) }
Writes the move packages for a new project
Writes the move packages for a new project
project_path
&Path
project_path
&Path