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.
 
 
 
 

25 rivejä
523 B

  1. using System;
  2. using System.IO;
  3. namespace MQTTnet.Server.Configuration
  4. {
  5. public static class PathHelper
  6. {
  7. public static string ExpandPath(string path)
  8. {
  9. if (path == null)
  10. {
  11. return null;
  12. }
  13. var uri = new Uri(path, UriKind.RelativeOrAbsolute);
  14. if (!uri.IsAbsoluteUri)
  15. {
  16. return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, path);
  17. }
  18. return path;
  19. }
  20. }
  21. }