fix: troubleshooting startup failure in Windows System

This commit is contained in:
shiro
2025-07-09 20:32:20 +08:00
parent 78b2487639
commit 166080aac8
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -145,8 +145,8 @@ impl Debug for LocalDisk {
impl LocalDisk {
pub async fn new(ep: &Endpoint, cleanup: bool) -> Result<Self> {
debug!("Creating local disk");
let root = match fs::canonicalize(ep.get_file_path()).await {
Ok(path) => path,
let root = match PathBuf::from(ep.get_file_path()).absolutize() {
Ok(path) => path.into_owned(),
Err(e) => {
if e.kind() == ErrorKind::NotFound {
return Err(DiskError::VolumeNotFound);