mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
fix: Optimize the issue of obtaining path errors on Windows.
This commit is contained in:
@@ -52,7 +52,7 @@ pub struct RemoteDisk {
|
||||
impl RemoteDisk {
|
||||
pub async fn new(ep: &Endpoint, _opt: &DiskOption) -> Result<Self> {
|
||||
// let root = fs::canonicalize(ep.url.path()).await?;
|
||||
let root = PathBuf::from(ep.url.path());
|
||||
let root = PathBuf::from(ep.get_file_path());
|
||||
let addr = format!("{}://{}:{}", ep.url.scheme(), ep.url.host_str().unwrap(), ep.url.port().unwrap());
|
||||
Ok(Self {
|
||||
id: Mutex::new(None),
|
||||
|
||||
Reference in New Issue
Block a user