终端一体化运控平台
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.
 
 
 

27 lines
714 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BPASmartClient.Helper
  8. {
  9. public class LocaPath
  10. {
  11. private volatile static LocaPath _Instance;
  12. public static LocaPath GetInstance => _Instance ?? (_Instance = new LocaPath());
  13. private LocaPath() { }
  14. public string FilePath { get; set; } = string.Empty;
  15. public string Getpath(string name)
  16. {
  17. Directory.CreateDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"{FilePath}\\JSON"));
  18. return $"{AppDomain.CurrentDomain.BaseDirectory}{FilePath}JSON\\{name}.json";
  19. }
  20. }
  21. }