|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmartClient.Model
- {
- public class LocaPath
- {
- public static string FilePath { get; set; } = string.Empty;
-
- public static string Getpath(string name)
- {
- Directory.CreateDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"{FilePath}\\JSON"));
- return $"{AppDomain.CurrentDomain.BaseDirectory}{FilePath}JSON\\{name}.json";
- }
-
- public static string GetDeviceConfigPath
- {
- get
- {
- Directory.CreateDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"AccessFile\\DeviceConfig"));
- return $"{AppDomain.CurrentDomain.BaseDirectory}AccessFile\\DeviceConfig\\";
- }
- }
-
- }
- }
|