mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-30 10:42:09 +08:00
feat: clash meta core supports
This commit is contained in:
@@ -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![])
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user