add kcp
This commit is contained in:
@@ -18,7 +18,6 @@ namespace BITKit
|
||||
[BITCommand]
|
||||
public static void Set(string key, string value)
|
||||
{
|
||||
Data.Set(key, value);
|
||||
if (Guid.TryParse(value, out var guidResult))
|
||||
{
|
||||
Data.Set(key, guidResult);
|
||||
@@ -35,6 +34,10 @@ namespace BITKit
|
||||
{
|
||||
Data.Set(key, intResult);
|
||||
}
|
||||
else
|
||||
{
|
||||
Data.Set(key, value);
|
||||
}
|
||||
}
|
||||
[BITCommand]
|
||||
public static void SetContainer(string key, string typeName, string json)
|
||||
|
@@ -32,6 +32,12 @@ namespace BITKit
|
||||
|
||||
return GetPath(paths);
|
||||
}
|
||||
public static void EnsureDirectoryCreated(string path)
|
||||
{
|
||||
path = Path.GetDirectoryName(path);
|
||||
if (Directory.Exists(path) is true) return;
|
||||
if (path != null) Directory.CreateDirectory(path);
|
||||
}
|
||||
|
||||
public static string GetFilePath(params string[] paths)
|
||||
{
|
||||
|
Reference in New Issue
Block a user