fix: Optimize the issue of obtaining path errors on Windows.

This commit is contained in:
shiro
2025-03-03 20:13:27 +08:00
parent 4ff452ffd2
commit ad30f0db89
4 changed files with 30 additions and 34 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ impl Debug for LocalDisk {
impl LocalDisk {
pub async fn new(ep: &Endpoint, cleanup: bool) -> Result<Self> {
let root = fs::canonicalize(ep.url.path()).await?;
let root = fs::canonicalize(ep.get_file_path()).await?;
if cleanup {
// TODO: 删除tmp数据