get code path
(&self)
| 48 | |
| 49 | /// get code path |
| 50 | pub fn code(&self) -> Result<String> { |
| 51 | let root = &self.root()?; |
| 52 | let p = PathBuf::from(root).join(&self.code); |
| 53 | if !PathBuf::from(&p).exists() { |
| 54 | fs::create_dir(&p)? |
| 55 | } |
| 56 | |
| 57 | Ok(p.to_string_lossy().to_string()) |
| 58 | } |
| 59 | |
| 60 | /// get scripts path |
| 61 | pub fn scripts(mut self) -> Result<String> { |