You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
325 B

  1. using System;
  2. using System.IO;
  3. namespace SUISS.Core
  4. {
  5. public static class PathHandler
  6. {
  7. public static string Combine(string basePath, string subPath)
  8. {
  9. if (subPath.StartsWith("/"))
  10. {
  11. subPath = subPath.Substring(1);
  12. }
  13. return Path.Combine(basePath, subPath).Replace("\\", "/");
  14. }
  15. }
  16. }