namespace Duplicati.Library.Backend.AliyunOSS { public static class Extensions { /// /// 移除路径首尾 ' ', '/', '\' /// Removes leading and trailing ' ', '/', and '\' from a path. /// /// The path to trim. /// The trimmed path. public static string TrimPath(this string path) { return path?.Trim().Trim('/').Trim('\\').Trim('/').Trim(); } } }