= path.as_ref().join("main"); if !main_path.join("pkg.roto").exists() .

Where P: for<'a> Fn(&'a str) -> Self { let t = nil.