• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révisiond305c01e66aa878323c2b803e6a67538e1c94ee7 (tree)
l'heure2022-11-29 23:52:48
Auteuryoshy <yoshy.org.bitbucket@gz.j...>
Commiteryoshy

Message de Log

[MOD] PathHelper.CreateCanonicalPath を可変引数に変更し2つ以上のパスを結合できるように変更

Change Summary

Modification

--- a/Core/IO/PathHelper.cs
+++ b/Core/IO/PathHelper.cs
@@ -12,14 +12,14 @@ namespace CleanAuLait.Core.IO
1212
1313 public static readonly string DUMMY_ROOT_PATH = @"z:\";
1414
15- public static string CreateCanonicalPath(string path, string name)
15+ public static string CreateCanonicalPath(params string[] paths)
1616 {
17- if (string.IsNullOrEmpty(path) || string.IsNullOrEmpty(name))
17+ if (paths.Any(path => string.IsNullOrEmpty(path)))
1818 {
1919 return null;
2020 }
2121
22- return CreateCanonicalPath(Path.Combine(path, name));
22+ return CreateCanonicalPath(Path.Combine(paths));
2323 }
2424
2525 public static string CreateCanonicalPath(string path)