mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
fix: IcdSqliteConnection CreateFile method will make directories recursively
This commit is contained in:
parent
7870d2c375
commit
09e0a20443
1 changed files with 3 additions and 0 deletions
|
|
@ -32,6 +32,9 @@ namespace ICD.Common.Utils.Sqlite
|
|||
/// <param name="path"></param>
|
||||
public static void CreateFile(string path)
|
||||
{
|
||||
string directory = IcdPath.GetDirectoryName(path);
|
||||
IcdDirectory.CreateDirectory(directory);
|
||||
|
||||
using (IcdFileStream fs = IcdFile.Create(path))
|
||||
fs.Close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue