feat: clash meta core supports

This commit is contained in:
GyDi
2022-05-17 01:59:49 +08:00
parent f5c6fa842a
commit be9ea4ea8e
13 changed files with 195 additions and 36 deletions
+26
View File
@@ -0,0 +1,26 @@
use anyhow::{Context, Result};
use std::env::current_exe;
pub struct CoreItem {
pub name: String,
pub path: String,
}
pub struct Multi {}
impl Multi {
pub fn list() -> Result<Vec<CoreItem>> {
let paths = current_exe()
.unwrap()
.parent()
.unwrap()
.read_dir()
.context("failed to current dir")?;
for path in paths {
dbg!(path.unwrap().path().metadata().unwrap().permissions().);
}
Ok(vec![])
}
}