mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 05:06:28 +00:00
update stock api
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
use std::path::Path;
|
||||
|
||||
const GLOBAL_DIR_SUFFIX: &str = "__XLDIR__";
|
||||
|
||||
pub const SLASH_SEPARATOR: &str = "/";
|
||||
@@ -39,7 +37,3 @@ pub fn retain_slash(s: &str) -> String {
|
||||
format!("{}{}", s, SLASH_SEPARATOR)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn join(p1: &str, p2: &str) -> String {
|
||||
Path::new(p1).join(Path::new(p2)).to_string_lossy().to_string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user