Révision | d305c01e66aa878323c2b803e6a67538e1c94ee7 (tree) |
---|---|
l'heure | 2022-11-29 23:52:48 |
Auteur | yoshy <yoshy.org.bitbucket@gz.j...> |
Commiter | yoshy |
[MOD] PathHelper.CreateCanonicalPath を可変引数に変更し2つ以上のパスを結合できるように変更
@@ -12,14 +12,14 @@ namespace CleanAuLait.Core.IO | ||
12 | 12 | |
13 | 13 | public static readonly string DUMMY_ROOT_PATH = @"z:\"; |
14 | 14 | |
15 | - public static string CreateCanonicalPath(string path, string name) | |
15 | + public static string CreateCanonicalPath(params string[] paths) | |
16 | 16 | { |
17 | - if (string.IsNullOrEmpty(path) || string.IsNullOrEmpty(name)) | |
17 | + if (paths.Any(path => string.IsNullOrEmpty(path))) | |
18 | 18 | { |
19 | 19 | return null; |
20 | 20 | } |
21 | 21 | |
22 | - return CreateCanonicalPath(Path.Combine(path, name)); | |
22 | + return CreateCanonicalPath(Path.Combine(paths)); | |
23 | 23 | } |
24 | 24 | |
25 | 25 | public static string CreateCanonicalPath(string path) |